Creates an argument encoder for a specific array of arguments.
Required.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Metal
Declaration
- (id<MTLArgument Encoder>)newArgumentEncoderWithArguments:(NSArray<MTLArgument Descriptor *> *)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 MTLArgument
object must be encoded in the specified argument order and must match the specified argument descriptions.