Game dev
Saved & recent

Graphics API

Related terms: DirectX, Vulkan, Metal, OpenGL, WebGPU, driver

The interface a program uses to talk to the GPU: create buffers, upload textures, set shaders, issue draw calls. Each platform has its own. Engines hide them behind one layer so the same game runs everywhere.

The newer ones (Vulkan, DirectX 12, Metal) are lower level. They give more control and less CPU overhead in exchange for much more work.

Further reading
Khronos: Vulkan tutorial
0 1 2 0 2 3 p = M · v c = T₀(uv)·L V₀ T₀ S₀ 240 buffer texture shader engineabstraction API backends Vulkan Metal driver /runtime GPU rendered image
One engine abstraction can target different graphics backends. This example selects Vulkan (solid path); Metal is an alternative (dashed path) where supported. V₀, T₀ and S₀ identify geometry, texture and shaders; the draw uses 240 indices for 80 triangles. Command encoding, shader expressions and GPU layout are schematic; platform support and performance depend on the implementation.

View in the full Game dev collection