Contents

executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:

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

Declaration

- (void) executeCommandsInBuffer:(id<MTLIndirectCommandBuffer>) indirectCommandbuffer indirectBuffer:(id<MTLBuffer>) indirectRangeBuffer indirectBufferOffset:(NSUInteger) indirectBufferOffset;

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