Contents

executeCommands(in:indirectBuffer:indirectBufferOffset:)

Encodes an instruction to run commands from an indirect buffer, using another buffer to provide the command range.

Declaration

func executeCommands(in indirectCommandbuffer: any MTLIndirectCommandBuffer, indirectBuffer indirectRangeBuffer: any MTLBuffer, indirectBufferOffset: Int)

Parameters

  • indirectCommandbuffer:

    The Mtlindirectcommandbuffer instance containing the commands to execute.

  • indirectRangeBuffer:

    An indirect buffer containing the execution range, laid out in an Mtlindirectcommandbufferexecutionrange instance. The maximum length of the range is 16384 commands.

  • indirectBufferOffset:

    The number of bytes from the start of indirectRangeBuffer containing the execution range to use. Align the offset on a multiple of 4.

See Also

Dispatching from indirect command buffers