Contents

Metal Performance Shaders

Optimize graphics and compute performance with kernels that are fine-tuned for the unique characteristics of each Metal GPU family.

Overview

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 MTLCommandBuffer, MTLTexture, and 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.

Topics

Fundamentals

Device Support

Image Filters

Neural Networks

Matrices and Vectors

Kernel Base Classes

Keyed Archivers

Ray Tracing

Articles

Classes

Protocols

Structures

Variables

Type Aliases

See Also

Related Documentation

  • Metal
  • Metal Programming Guide