dispatchThreads(indirectBuffer:)
Encodes a compute dispatch command with an arbitrarily sized grid, using an indirect buffer for arguments.
Declaration
func dispatchThreads(indirectBuffer: MTLGPUAddress)Parameters
- indirectBuffer:
GPUAddress of a Mtlbuffer instance providing arguments. Lay out the data in this buffer as described in the Mtldispatchthreadsindirectarguments structure. This address requires 4-byte alignment.