Method DispatchCompute
DispatchCompute(CommandBuffer, ComputeShaderInstance, int, int, int)
Dispatch work on the compute shader program.
Declaration
public static void DispatchCompute(this CommandBuffer cmd, ComputeShaderInstance shader, int threadGroupsX, int threadGroupsY, int threadGroupsZ)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command buffer to dispatch the work to. |
ComputeShaderInstance | shader | Shader instance. |
int | threadGroupsX | Number of work groups in the X dimension. |
int | threadGroupsY | Number of work groups in the Y dimension. |
int | threadGroupsZ | Number of work groups in the Z dimension. |