An object used to customize how a new compute pipeline state object is compiled.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
To create a
MTLCompute object, you create a pipeline descriptor, configure its properties, and pass it to one of the creation methods on a
MTLDevice object. See Creating a Compute Pipeline.
Use standard allocation and initialization techniques to create a
MTLCompute object and configure its properties. The most important property to set is the
compute property, which specifies which Metal function to call.