Instance Method

resetCommandsInBuffer(_:range:)

Encodes a command to reset a range of commands in an indirect command buffer.

Declaration

func resetCommandsInBuffer(_ buffer: MTLIndirectCommandBuffer, range: Range<Int>)

Parameters

buffer

An indirect command buffer.

range

The range of commands whose contents should be reset.

See Also

Working with Indirect Command Buffers

func copyIndirectCommandBuffer(MTLIndirectCommandBuffer, sourceRange: Range<Int>, destination: MTLIndirectCommandBuffer, destinationIndex: Int)

Encodes a command to copy commands from an indirect command buffer into another indirect command buffer.

func optimizeIndirectCommandBuffer(MTLIndirectCommandBuffer, range: Range<Int>)

Encodes a command to optimize a range in the indirect command buffer to improve performance.