Instance Method

makeArgumentEncoder(arguments:)

Creates an argument encoder for a specific array of arguments.

Required.

Declaration

func makeArgumentEncoder(arguments: [MTLArgumentDescriptor]) -> MTLArgumentEncoder?

Parameters

arguments

An array describing the arguments to encode into argument buffer.

Return Value

A new argument encoder.

Discussion

Resources encoded into an argument buffer by a MTLArgumentEncoder object must be encoded in the specified argument order and must match the specified argument descriptions.

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