Capítulo 394 de 859
This class represents native code sections. It is the base class for modules like FunctionNode which allows to implement functions with native shader languages.
Constructor
| Signature |
|---|
| `new CodeNode( code : string, includes : Array.<Node>, language : 'js' |
Properties
| Property | Description |
|---|---|
.code : string | The native code. |
.global : boolean | This flag is used for global cache. |
.includes : Array.<Node> | An array of includes |
.isCodeNode : boolean (readonly) | This flag can be used for type testing. |
| `.language : 'js' | 'wgsl' |
Methods
| Method | Description |
|---|---|
.getIncludes( builder : NodeBuilder ) : Array.<Node> | Returns the includes of this code node. |
.setIncludes( includes : Array.<Node> ) : CodeNode | Sets the includes of this code node. |