Method DispatchCompute
DispatchCompute(ComputeShader, int, int, int, int)
Wraps DispatchCompute on a CommandBuffer.
Declaration
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 |
DispatchCompute(ComputeShader, int, ComputeBuffer, uint)
Wraps DispatchCompute on a CommandBuffer.
Declaration
void DispatchCompute(ComputeShader computeShader, int kernelIndex, ComputeBuffer indirectBuffer, uint argsOffset)
Parameters
Type | Name | Description |
---|---|---|
ComputeShader | computeShader | |
int | kernelIndex | |
ComputeBuffer | indirectBuffer | |
uint | argsOffset |
DispatchCompute(ComputeShader, int, GraphicsBuffer, uint)
Wraps DispatchCompute on a CommandBuffer.
Declaration
void DispatchCompute(ComputeShader computeShader, int kernelIndex, GraphicsBuffer indirectBuffer, uint argsOffset)
Parameters
Type | Name | Description |
---|---|---|
ComputeShader | computeShader | |
int | kernelIndex | |
GraphicsBuffer | indirectBuffer | |
uint | argsOffset |