ArticleslgStudy

computer science

Metal (API)

Metal (API) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Metal (API) rather than just read about it. In short: Metal is a low-level, low-overhead hardware-accelerated 3D graphic and compute shader API created by Apple, debuting in iOS 8. Metal combines functions similar to OpenGL and OpenCL in one API.

Metal (API) — main illustration
Metal (API) — illustration

Key takeaways

  • Metal (API) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Metal (API) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Metal (API) from memory before moving on to harder problems.

Reference excerpt

Metal is a low-level, low-overhead hardware-accelerated 3D graphic and compute shader API created by Apple, debuting in iOS 8. Metal combines functions similar to OpenGL and OpenCL in one API. It is intended to improve performance by offering low-level access to the GPU hardware for apps on iOS, iPadOS, macOS, tvOS and visionOS (though not watchOS). It is similar to low-level APIs on other platforms such as Vulkan and DirectX 12. Metal is an object-oriented API that can be invoked using the Swift, Objective-C or C++17 programming languages. Shaders and compute kernels are written in the Metal Shading Language (MSL), a C++-based language.

Features Metal aims to provide low-overhead access to the GPU. Commands are encoded beforehand and then submitted to the GPU for asynchronous execution. The application controls when to wait for the execution to complete thus allowing application developers to increase throughput by encoding other commands while commands are executed on the GPU or save power by explicitly waiting for GPU execution to complete. Additionally, command encoding is CPU independent thus applications can encode commands to each CPU thread independently. Lastly, render states are pre-computed beforehand, allowing the GPU driver to know in advance how to configure and optimize the render pipeline before command execution. Metal improves the capabilities of GPGPU programming by using compute shaders. Metal uses a specific shading language based on C++14, implemented using Clang and LLVM. Metal allows application developers to create Metal resources such as buffers and textures. Resources can be allocated on the CPU, GPU, or both and provides facilities to update and synchronize allocated resources. Metal can also enforce a resource's state during a command encoder's lifetime. On macOS, Metal can provide application developers the discretion to specify which GPU to execute. Application developers can choose between the low-power integrated GPU of the CPU, the discrete GPU (on certain MacBooks and Macs) or an external GPU connected through Thunderbolt. Application developers also have the preference on how GPU commands are executed on which GPUs and provides suggestion on which GPU a certain command is most efficient to execute (commands to render a scene can be executed by the discrete GPU while post-processing and display can be handled by the integrated GPU).

Metal Performance Shaders Metal Performance Shaders is a highly optimized library of graphics functions that can help application developers achieve great performance at the same time decrease work on maintaining GPU family specific functions. It provides functions including:

Image filtering algorithms Neural network processing Advanced math operations Ray tracing

History Metal has been available since June 2, 2014 on iOS devices powered by Apple A7 or later, and since June 8, 2015 on Macs (2012 models or later) running OS X El Capitan. On June 5, 2017, at WWDC, Apple announced the second version of Metal, to be supported by macOS High Sierra, iOS 11 and tvOS 11. Metal 2 is not a separate API from Metal and is supported by the same hardware. Metal 2 enables more efficient profiling and debugging in Xcode, accelerated machine learning, lower CPU workload, support for virtual reality on macOS, and specificities of the Apple A11 GPU, in particular. At the 2020 WWDC, Apple announced the migration of the Mac to Apple silicon. Macs using Apple silicon will feature Apple GPUs with a feature set combining what was previously available on macOS and iOS, and will be able to take advantage of features tailored to the tile based deferred rendering (TBDR) architecture of Apple GPUs. At the 2022 WWDC, Apple announced the third version of Metal (Metal 3), which would debut with the release of macOS Ventura, iOS 16 and iPadOS 16. Metal 3 introduces the MetalFX upscaling framework, which renders complex scenes in less time per frame with high-performance upscaling and anti-aliasing, mesh shaders support. Also announced possibility to use C/C++ for Metal API. At the 2023 WWDC, Apple announced a brand new toolkit called the Game Porting Toolkit to port Windows 10/11-based games. It includes an environment to test binaries, translation layers from HLSL to MSL, and Metal-cpp bindings. Jeremy Sandmel announced a new Game Mode for macOS Sonoma, and Hideo Kojima announced Death Stranding for the macOS App Store. At the 2024 WWDC, Apple announced Game Porting Toolkit 2, along with the release of new games such as Control: Ultimate Edition, Frostpunk 2, and Assassin's Creed Shadows for macOS. At the 2025 WWDC, Apple announced Metal 4, a new version of the API featuring a unified command encoder system, support for neural rendering, and new technologies such as MetalFX Frame Interpolation and a ray tracing denoiser.

Supported GPUs The first version of Metal supports the following hardware and software:

Apple A7 SoC or later with iOS 8 or later Apple M1 SoC or later with macOS 11 or later Intel Processor with Intel HD and Iris Graphics Ivy Bridge series or later with OS X 10.11 or later AMD Graphics with GCN or RDNA architecture with OS X 10.11 or later NVIDIA Graphics with Kepler architecture with OS X 10.11 to macOS 11 operating system NVIDIA Graphics with Maxwell architecture or Pascal architecture with OS X 10.11 to macOS 10.13 operating system While the above GPUs support a subset of the second version, Metal 2 is fully supported on the following hardware and software:

Apple A11 SoC or later with iOS 11 or later Apple M1 SoC or later with macOS 11 or later Intel Processor with Intel HD and Iris Graphics Skylake series or later with macOS 10.13 or later AMD Graphics with GCN or RDNA architecture with macOS 10.13 or later The third version of Metal supports the following hardware and software:

Apple A13 or later with iOS 16, iPadOS 16 Apple A14 or later with iOS 16, iPadOS 16 or later Apple M1 SoC or later with iPadOS 16 or later Apple M1 SoC or later with macOS 13 or later Intel Processor with Intel UHD 630 or Iris Plus (Kaby Lake or later) with macOS 13 or later AMD Graphics with RDNA architecture (5000 and 6000 series) and Pro Vega (5th generation GCN architecture) The fourth version of Metal supports the following hardware and software:

Apple A14 or later with iOS 26, iPadOS 26 or later Apple M1 SoC or later with iPadOS 26, macOS 26 or later

… excerpt ends here. Continue reading the full article.

Illustrations

Metal (API) illustration
Metal (API) illustration

Worked examples

Example 1 — a first encounter with Metal (API)

Start with the simplest possible case. Write down what Metal (API) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Metal (API) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Metal (API) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Metal (API)

In research
Metal (API) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Metal (API) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Metal (API) is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2014 software, 3D graphics APIs, Apple Inc. developed frameworks, so understanding it makes those chapters shorter.
In everyday life
Look for Metal (API) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Metal (API)” →

How to study Metal (API) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Metal (API) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Metal (API) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Metal (API) in simple terms?

Metal is a low-level, low-overhead hardware-accelerated 3D graphic and compute shader API created by Apple, debuting in iOS 8. Metal combines functions similar to OpenGL and OpenCL in one API.

Why does Metal (API) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Metal (API)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Metal (API).

Tags

  • 2014 software
  • 3D graphics APIs
  • Apple Inc. developed frameworks
  • Graphics libraries
  • IOS
  • MacOS APIs

Keep exploring