executeCommands(buffer:indirectBuffer:)
Encodes an instruction to execute commands from an indirect command buffer, using an indirect buffer for arguments.
Declaration
func executeCommands(buffer indirectCommandbuffer: any MTLIndirectCommandBuffer, indirectBuffer indirectRangeBuffer: MTLGPUAddress)Parameters
- indirectCommandbuffer:
Mtlindirectcommandbuffer instance containing the commands to execute.
- indirectRangeBuffer:
GPUAddress of a Mtlbuffer containing the execution range. Lay out the data in this buffer as described in the Mtlindirectcommandbufferexecutionrange structure. This address requires 4-byte alignment.
Discussion
Use an instance of MTLResidencySet to mark residency of the indirect buffer that the indirectRangeBuffer parameter references.