Optimize graphics and compute performance with kernels that are fine-tuned for the unique characteristics of each Metal GPU family.
- iOS 9.0+
- macOS 10.13+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
The Metal Performance Shaders framework contains a collection of highly optimized compute and graphics shaders that are designed to integrate easily and efficiently into your Metal app. These data-parallel primitives are specially tuned to take advantage of the unique hardware characteristics of each GPU family to ensure optimal performance.
Apps adopting the Metal Performance Shaders framework achieve great performance without needing to create and maintain hand-written shaders for each GPU family. Metal Performance Shaders can be used along with your app’s existing Metal resources (such as the
MTLBuffer objects) and shaders.
The Metal Performance Shaders framework supports the following functionality:
Apply high-performance filters to, and extract statistical and histogram data from images.
Implement and run neural networks for machine learning training and inference.
Solve systems of equations, factorize matrices and multiply matrices and vectors.
Accelerate ray tracing with high-performance ray-geometry intersection testing.