An object that contains a compiled compute pipeline.
- iOS 8.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
MTLCompute object is a lightweight object used to refer to a compiled compute program. A
MTLCompute object is fully thread-safe and can be used by many
MTLCompute objects at once.
Creating compute pipeline state objects can be expensive, so you usually create these pipeline objects when your app is initialized and reuse them throughout its lifetime. You do not use standard allocation and initialization techniques to create a
MTLCompute object. Instead, you create these objects by calling methods on a
MTLDevice object. For a list of creation methods, see Creating a Compute Pipeline.