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.
Constructor
new ConvertNode(node, convertTo)| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| convertTo | string | — |
Constructs a new convert node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| node | Node | — | |
| convertTo | string | — | |
| Method | Type | |
|---|---|---|
| generateNodeType | (builder: NodeBuilder) => string | |
| serialize | (data: any) => void | |
| deserialize | (data: any) => void | |
| generate | (builder: any, output: any) => any | |
Extends
Node