Represents a compute shader node.
Constructor
new ComputeNode(computeNode, workgroupSize)| Parameter | Type | Default Value |
|---|---|---|
| computeNode | Node | — |
| workgroupSize | Array<number> | — |
Constructs a new compute node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| isComputeNode | boolean | — | |
| computeNode | Node | — | |
| workgroupSize | Array<number> | — | |
| count | number | Array<number> | — | |
| dispatchSize | number | Array<number> | — | |
| onInitFunction | null | Function | — | |
| countNode | any | — | |
| Method | Type | |
|---|---|---|
| dispose | () => void | |
| setName | (name: string) => ComputeNode | |
| label | (name: string) => ComputeNode | |
| onInit | (callback: Function) => ComputeNode | |
| updateBefore | ({ renderer }: NodeFrame) => void | |
| setup | (builder: any) => null | string | Node | |
| generate | (builder: any, output: any) => any | |
Extends
NodeTSL function for creating a compute kernel node.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| workgroupSize? | Array<number> | [64] |
Returns
ComputeNodeTSL function for creating a compute node.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| count | number | Array<number> | — |
| workgroupSize? | Array<number> | [64 |
Returns
ComputeNode