Instance Method

executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:

Encodes a command to execute commands in an indirect command buffer, specifying the range indirectly.

Required.

Declaration

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

Parameters

indirectCommandbuffer

The indirect buffer containing the commands to execute.

indirectBuffer

An indirect buffer from which the device reads the execution range parameter, as laid out in the MTLIndirectCommandBufferExecutionRange structure. The maximum length of the range is 16384 commands.

indirectBufferOffset

The byte offset within the buffer where the execution range is located. Must be a multiple of 4 bytes.

See Also

Executing Commands from Indirect Command Buffers

- executeCommandsInBuffer:withRange:

Encodes a command to execute commands in an indirect command buffer.

Required.