Home -> IStateGroupNode -> SetComputeTask
Description
The SetComputeTask method defines a compute task to execute for this node. No child nodes or rendering state settings are valid when a compute task is defined, and the parent IShaderProgram node must define a compute shader.
Usage
void SetComputeTask(const V3UInt32& threadGroupCounts);
Argument list
- threadGroupCounts [const V3UInt32]
- The number of compute shader thread groups to dispatch in the X, Y, and Z dimensions.