Information about an argument of a graphics or compute function.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
MTLArgument object describes a single argument to a Metal function. Your app uses the
MTLArgument properties to read details about a function argument as it was defined in the Metal Shading Language. You can determine the argument’s data type, access restrictions, and its associated resource type. For buffer, texture, and threadgroup memory arguments, additional properties can be read to determine more details about the argument.
Your app does not create a
MTLArgument object directly. Creating a
MTLCompute object can generate a reflection object (
MTLCompute) that contains