Capítulo 401 de 859
This module is part of the TSL core and usually not used in app level code. It represents a convert operation during the shader generation process meaning it converts the data type of a node to a target data type.
| sign.Constructor
| Signature |
|---|
new ConvertNode( node : Node, convertTo : string ) |
Properties
| Property | Description |
|---|---|
.convertTo : string | The target node type. Multiple types can be defined by separating them with a | sign. |
.node : Node | The node which type should be converted. |
Methods
| Method | Description |
|---|---|
.generateNodeType( builder : NodeBuilder ) : string | This method is overwritten since the implementation tries to infer the best matching type from the ConvertNode#convertTo property. |