what's new in Metal for 2024

Generated on 7/30/2024

1 search

Tailscan

This post is brought to you by Tailscan, the best devtool for Tailwind CSS.

In 2024, Apple introduced several new features and improvements to Metal, particularly aimed at enhancing the gaming and machine learning experiences on Apple platforms. Here are some of the key updates:

  1. Metal Shader Converter:

    • The Metal Shader Converter now supports all shader stages, including advanced ones like ray tracing and mesh shaders, as well as legacy technologies such as geometry and tessellation shaders. This tool significantly accelerates the porting timeline for games (Port advanced games to Apple platforms).
  2. Unified Metal Shaders:

    • Developers can now compile their shaders once and deploy them to both macOS and iOS, thanks to unified Metal shaders. This unification also extends to Metal device initialization, making the development process more straightforward (Port advanced games to Apple platforms).
  3. Gameporting Toolkit 2:

    • The updated Gameporting Toolkit includes improved compatibility with technologies like AVX2 and advanced gaming features such as ray tracing. It also adds highly requested API improvements to help DirectX developers port their existing graphics code to Metal (Platforms State of the Union).
  4. Machine Learning Enhancements:

    • Metal backends for popular machine learning frameworks like PyTorch, TensorFlow, and JAX have received significant performance updates. These include support for larger models and batch sizes, mixed precision training, and new data types like Pfloat 16 in JAX (Train your machine learning and AI models on Apple GPUs).
  5. MPS Graph:

    • Metal Performance Shaders (MPS) Graph provides low-level control over GPU synchronization and memory, which is particularly useful for constructing and running general-purpose compute graphs. This is beneficial for applications that need to sequence ML tasks with other GPU work (Accelerate machine learning with Metal).

These updates collectively enhance the capabilities of Metal, making it easier for developers to port advanced games to Apple platforms and leverage the power of Apple Silicon GPUs for machine learning tasks.