Instance Method


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



func setIndirectCommandBuffer(_ indirectCommandBuffer: MTLIndirectCommandBuffer?, index: Int)



The indirect command buffer to encode.


The index of the inlined constant data argument within the argument buffer. This value corresponds to either the index ID of a Metal shading language declaration or the index field of a MTLArgumentDescriptor object.

See Also

Encoding Indirect Command Buffers

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

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software