Search results
Metal powers hardware-accelerated graphics on Apple platforms by providing a low-overhead API, rich shading language, tight integration between graphics and compute, and an unparalleled suite of GPU profiling and debugging tools.
The Metal framework gives your app direct access to a device’s graphics processing unit (GPU). With Metal, apps can leverage a GPU to quickly render complex scenes and run computational tasks in parallel. For example, apps in these categories use Metal to maximize their performance: Games that render sophisticated 2D or 3D environments
Metal-cpp is a low-overhead C++ interface for Metal that helps you add Metal functionality to graphics apps, games, and game engines that are written in C++. Highlights. Drop in C++ alternative interface to the Metal Objective-C headers. Direct mapping of all Metal Objective-C classes, constants, and enums to C++ in the MTL C++ namespace.
PyTorch uses the new Metal Performance Shaders (MPS) backend for GPU training acceleration. This MPS backend extends the PyTorch framework, providing scripts and capabilities to set up and run operations on Mac. The MPS framework optimizes compute performance with kernels that are fine-tuned for the unique characteristics of each Metal GPU family.
The command produces a Metal library that your app can load at runtime. One way to do this is by adding it to your project’s build targets in Xcode. Note. The Metal command-line tools for Windows use the same options and arguments as their macOS counterparts. Retrieve and Load a Library
Metal Performance Shaders for Accelerating Ray Tracing. Use the Metal Performance Shaders ray intersector to perform ray-traced rendering. This sample demonstrates how accelerate a path-traced renderer to cast primary, secondary, and shadow rays in a scene to simulate realistic lighting effects. macOS iOS. View sample code
Get started with tensorflow-metal. Accelerate the training of machine learning models with TensorFlow right on your Mac. Install base TensorFlow and the tensorflow-metal PluggableDevice to accelerate training with Metal on Mac GPUs. Learn about TensorFlow PluggableDevices. Requirements. Mac computers with Apple silicon or AMD GPUs
Metal 3 also brings significant speedup to the ray tracing pipeline. Everything from acceleration structure builds, intersection and shading have been optimized. Metal also adds support for GPU-driven ray tracing pipelines to further optimize your app. Let's compare Metal 3's ray tracing to what was previously available.
JAX uses the new Metal plug-in to provide Metal acceleration on Mac platforms. The Metal plugin uses the OpenXLA compiler and PjRT runtime to accelerate JAX machine learning workloads on GPU. The OpenXLA compiler lowers the JAX primitives to a Stable HLO format, which is converted to MPSGraph executables and Metal runtime APIs to dispatch to GPU.
You can now take your game evaluation even further by using Metal tools such as Metal HUD, Metal GPU debugger, and Metal System Trace. Review the Human Interface Guidelines to learn how to deliver an outstanding experience across Mac, iPhone, and iPad. Use the game porting example code to learn how to map your game subsystems to Apple frameworks.