Instance Method

makeArgumentEncoder(arguments:)

Creates a new argument encoder for a specific array of arguments.

Required.

Declaration

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

Parameters

arguments

An array that represents the arguments within an argument buffer.

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.

See Also

Creating Argument Buffers

var argumentBuffersSupport: MTLArgumentBuffersTier

Determines the argument buffers tier supported by the device.

Required.

var maxArgumentBufferSamplerCount: Int

The maximum number of unique argument buffer samplers per app.

Required.