Method DispatchCompute
DispatchCompute(ComputeShader, int, int, int, int)
Wraps DispatchCompute on a CommandBuffer.
Declaration
public void DispatchCompute(ComputeShader computeShader, int kernelIndex, int threadGroupsX, int threadGroupsY, int threadGroupsZ)
Parameters
Type | Name | Description |
---|---|---|
ComputeShader | computeShader | |
int | kernelIndex | |
int | threadGroupsX | |
int | threadGroupsY | |
int | threadGroupsZ |
Implements
DispatchCompute(ComputeShader, int, ComputeBuffer, uint)
Wraps DispatchCompute on a CommandBuffer.
Declaration
public void DispatchCompute(ComputeShader computeShader, int kernelIndex, ComputeBuffer indirectBuffer, uint argsOffset)
Parameters
Type | Name | Description |
---|---|---|
ComputeShader | computeShader | |
int | kernelIndex | |
ComputeBuffer | indirectBuffer | |
uint | argsOffset |
Implements
DispatchCompute(ComputeShader, int, GraphicsBuffer, uint)
Wraps DispatchCompute on a CommandBuffer.
Declaration
public void DispatchCompute(ComputeShader computeShader, int kernelIndex, GraphicsBuffer indirectBuffer, uint argsOffset)
Parameters
Type | Name | Description |
---|---|---|
ComputeShader | computeShader | |
int | kernelIndex | |
GraphicsBuffer | indirectBuffer | |
uint | argsOffset |