Contents

executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:

Encodes a command that runs an indirect range of commands from an indirect command buffer (ICB).

Declaration

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

Parameters

  • indirectCommandbuffer:

    An Mtlindirectcommandbuffer instance that contains other commands the current command runs.

  • indirectRangeBuffer:

    An Mtlbuffer instance with data that matches the layout of the Mtlindirectcommandbufferexecutionrange structure.

    The Length property of that structure needs to be less than or equal to 0x4000 (16,384).

  • indirectBufferOffset:

    An integer that represents the location, in bytes, from the start of indirectRangeBuffer where the execution range structure begins.

    See the Metal Feature Set Tables to check for offset alignment requirements for buffers in device and constant address space.

See Also

Running commands from indirect command buffers