Instance Method


Creates a new argument encoder for a nested argument buffer.



func makeArgumentEncoderForBuffer(atIndex index: Int) -> MTLArgumentEncoder?



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


If an argument buffer contains nested argument buffers in its structure, then each nested argument buffer must use its own MTLArgumentEncoder object to encode its individual resources.

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