Instance Method


Creates an argument encoder for an argument buffer that is one of this function's arguments.



func makeArgumentEncoder(bufferIndex: Int) -> MTLArgumentEncoder



The index of an argument buffer in the function's argument list. This method fails if the specified index does not correspond to an argument buffer.


Resources encoded into an argument buffer by the MTLArgumentEncoder object must match the structure of the argument buffer located at the specified buffer index. If you want to interpret a regular structure as an argument buffer, at least one of the members of the structure must have an [[id(n)]] attribute.

See Also

Creating Argument Encoders

func makeArgumentEncoder(bufferIndex: Int, reflection: AutoreleasingUnsafeMutablePointer<MTLAutoreleasedArgument?>?) -> MTLArgumentEncoder

Creates an argument encoder and returns reflection information for an argument buffer that is one of this function's arguments


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