N E W
StructNode allows to create custom structures with multiple members. This can also be used to define structures in attribute and uniform data.
Constructor
new StructNode(structTypeNode, values)| Parameter | Type | Default Value |
|---|---|---|
| structTypeNode | any | — |
| values | any | — |
| Accessor | Type | Modifiers |
|---|---|---|
| get type | string | static |
| Method | Type | Modifiers |
|---|---|---|
| getNodeType | (builder: any) => any | — |
| getMemberType | (builder: any, name: any) => any | — |
| generate | (builder: any) => any | — |
Extends
NodeN E W
| Parameter | Type | Default Value |
|---|---|---|
| membersLayout | Object | — |
| name? | null | string | null |
Returns
Function