Instance Method

newArgumentEncoderWithArguments:

Creates an argument encoder for a specific array of arguments.

Required.

Declaration

- (id<MTLArgumentEncoder>)newArgumentEncoderWithArguments:(NSArray<MTLArgumentDescriptor *> *)arguments;

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.