Inheritance: EventDispatcher → Node →
Represents a compute shader node.
Constructs a new compute node.
computeNode
The node that defines the compute shader logic.
workgroupSize
An array defining the X, Y, and Z dimensions of the workgroup for compute shader execution.
The node that defines the compute shader logic.
The total number of threads (invocations) to execute. If it is a number, it will be used to automatically generate bounds checking against instanceIndex.
A uniform node holding the dispatch count for bounds checking. Created automatically when count is a number.
The dispatch size for workgroups on X, Y, and Z axes. Used directly if count is not provided.
This flag can be used for type testing.
Default is true.
The name or label of the uniform.
Default is ''.
Overrides: Node#name
A callback executed when the compute node finishes initialization.
The updateBeforeType is set to NodeUpdateType.OBJECT since ComputeNode#updateBefore is executed once per object by default.
Default is 'object'.
Overrides: Node#updateBeforeType
The version of the node.
Overrides: Node#version
An array defining the X, Y, and Z dimensions of the workgroup for compute shader execution.
Default is [ 64 ].
Executes the dispose event for this node.
Overrides: Node#dispose
Sets the ComputeNode#name property.
name
The name of the uniform.
Deprecated: Yes
Returns: A reference to this node.
Sets the callback to run during initialization.
callback
The callback function.
Returns: A reference to this node.
Sets the ComputeNode#name property.
name
The name of the uniform.
Returns: A reference to this node.
The method execute the compute for this node.
frame
A reference to the current node frame.
Overrides: Node#updateBefore