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.