Instance Method

setIndirectCommandBuffers(_:range:)

Encodes an array of indirect command buffers into the argument buffer.

Declaration

func setIndirectCommandBuffers(_ buffers: [MTLIndirectCommandBuffer?], range: Range<Int>)

Parameters

buffers

An array of indirect command buffers to encode.

range

A range of indices for the array of samplers within the argument buffer. These values correspond to either the index IDs of a Metal shading language declaration or the index fields of MTLArgumentDescriptor objects.

See Also

Encoding Indirect Command Buffers

func setIndirectCommandBuffer(MTLIndirectCommandBuffer?, index: Int)

Encodes a reference to an indirect command buffer into the argument buffer.

Required.