Source: ViewEdit

GPU API lookup

Use these tables to look up an API name, shading language, or translation layer once you know which GPU job you are working on. For the conceptual explanations behind these rows, see GPU programming, Graphics programming, and GPU compute. To inspect what a specific workstation currently exposes, run the probes in Check which GPU APIs are available.

Your program often calls a translator, which calls a target API, which calls a vendor driver, which drives the GPU

Three GPU jobs

Job What it produces APIs in this family

Draw (graphics)

A rendered frame of pixels

OpenGL, OpenGL ES, WebGL, WebGL 2, Vulkan graphics, Direct3D 11, Direct3D 12, Metal, WebGPU render pass

Compute

A buffer of computed results

CUDA, HIP / ROCm, OpenCL, SYCL, Vulkan compute, Direct3D 12 compute, Metal compute, WebGPU compute

Video

A decoded or encoded video picture

VA-API, VDPAU, NVDEC, NVENC, AMF, VideoToolbox, Media Foundation, Vulkan Video, WebCodecs

Graphics and explicit GPU APIs

Name Where it runs Shading language Key facts

OpenGL

Desktop operating systems

GLSL

Stateful model (bind resources, configure state, draw). Mesa can implement OpenGL on top of Vulkan drivers through Zink.

OpenGL ES

Mobile devices, embedded Linux, and WebGL’s specification base

GLSL ES

ES 2.0 and ES 3.0 cover drawing only; ES 3.1 introduced compute shaders, which WebGL did not adopt.

WebGL / WebGL 2

Browser <canvas>

GLSL ES

WebGL 1 maps to OpenGL ES 2.0; WebGL 2 maps to OpenGL ES 3.0 and has no compute shader. Browsers usually implement it through ANGLE.

WebGPU

Modern browsers, plus native apps via wgpu or Dawn

WGSL

Explicit render passes and compute passes on one device. Chrome uses Dawn; Firefox and native Rust use wgpu. Both target Direct3D 12, Metal, or Vulkan.

Vulkan

Windows, Linux, Android (Apple via MoltenVK)

SPIR-V (usually compiled from GLSL or HLSL)

Explicit command buffers, pipelines, and barriers. Supports graphics, compute, and opt-in video extensions. Requires a window-system surface and swapchain to present on screen.

Direct3D 11

Windows

HLSL

Mature Windows graphics API and the usual Windows target underneath ANGLE for WebGL.

Direct3D 12

Windows

HLSL

Explicit generation alongside Vulkan and Metal. Supports graphics and compute; Dawn and wgpu target it on Windows.

Metal

Apple (macOS, iOS)

MSL

Apple’s explicit graphics and compute API. MoltenVK, ANGLE (on Apple), Dawn, and wgpu translate onto it.

Compute platforms

Name Target hardware Key facts

CUDA

NVIDIA GPUs, including Jetson boards

Complete platform: C++ kernel dialect, nvcc compiler, runtime, and vendor math libraries (cuBLAS, cuDNN, etc.). A compiled CUDA binary does not run on AMD or Intel GPUs.

ROCm

AMD GPUs (first-class on Linux)

AMD’s compute stack: driver components, runtime, and libraries underneath HIP. On Windows, treat it as available only when rocminfo confirms a GPU device on that machine.

HIP

AMD via ROCm; NVIDIA via HIP’s CUDA target

CUDA-shaped C++ source model compiled with hipcc. Porting from CUDA is a source translation (often assisted by hipify), producing a fresh binary rather than reusing a NVIDIA .cubin.

OpenCL

Vendors whose drivers still ship an ICD

Older Khronos cross-vendor compute API. Still purely compute, not a drawing API.

SYCL / oneAPI

CPUs, GPUs, and accelerators across supported backends

Intel-led single-source C++ compute model. A compute abstraction rather than a windowing or drawing API.

Compute shaders

Any explicit graphics API queue

Available in Vulkan, WebGPU, Direct3D 12, and Metal. Gives cross-vendor parallel dispatch without requiring CUDA or ROCm, though without built-in cuBLAS or rocBLAS libraries.

Hardware video APIs

Name Platform Key facts

VA-API

Linux (libva)

Standard Linux hardware decode and encode interface, implemented natively by Intel’s media driver and Mesa’s AMD driver. Used by FFmpeg and mpv; inspect supported profiles with vainfo.

VDPAU

Older NVIDIA Linux stacks

Legacy decode and presentation interface predating NVDEC as NVIDIA’s main path.

NVDEC / NVENC

NVIDIA GPUs

NVIDIA’s native hardware decode and encode interfaces. Separate fixed-function path from CUDA even though both come from NVIDIA.

AMF

AMD (Windows, select Linux paths)

AMD Media Framework for direct vendor video encode and decode.

VideoToolbox

Apple (macOS, iOS)

Apple’s hardware video decode and encode framework.

Media Foundation

Windows

Standard Windows media playback and hardware transcode pipeline.

Vulkan Video

Vulkan devices advertising video extensions

Opt-in Vulkan queues for hardware decode and encode. Newer than VA-API and not the default backend FFmpeg selects.

WebCodecs

Modern browsers

Browser API for hardware-backed video encode and decode. Processes frames and encoded chunks rather than WGSL or GLSL shaders.

Translators

WebGL routes through ANGLE, WebGPU through Dawn or wgpu, Vulkan on Apple through MoltenVK, and OpenGL through Zink
API your code calls Translator What the vendor driver typically receives

WebGL / WebGL 2

ANGLE

Direct3D 11 on Windows, Metal on Apple, Vulkan or native OpenGL elsewhere

WebGPU

Dawn (Chrome/Chromium) or wgpu (Firefox and native Rust)

Direct3D 12 on Windows, Metal on Apple, or Vulkan

Vulkan on Apple

MoltenVK

Metal

OpenGL on a Vulkan driver

Zink (Mesa)

Vulkan

Direct3D 9 / 10 / 11 on Linux

DXVK

Vulkan

Direct3D 12 on Linux

vkd3d-proton

Vulkan

CUDA-shaped source on AMD

HIP / hipify + hipcc

ROCm binary compiled from source (not a reused CUDA .cubin)

VA-API on NVIDIA Linux

nvidia-vaapi-driver (when installed)

NVDEC (NVIDIA’s native Linux userspace uses NVDEC directly)

Guest operating systems hosted inside a web page follow the same translation pattern. For example, unkernel routes guest OpenGL to WebGL 2, guest Vulkan (kwvk) to WebGPU by translating SPIR-V into WGSL, and guest VA-API to WebCodecs; under Node, none of those browser GPU doors exist.

Shading languages and intermediate forms

Language or format Where it is consumed

GLSL

OpenGL directly, and Vulkan after ahead-of-time compilation to SPIR-V (for example with glslangValidator)

GLSL ES

OpenGL ES and WebGL / WebGL 2

HLSL

Direct3D 11 and Direct3D 12; DXC can also compile HLSL to SPIR-V for Vulkan

MSL

Apple Metal

WGSL

WebGPU (compiled by Dawn or wgpu to platform shader formats)

SPIR-V

Vulkan’s binary shader representation (and an intermediate form translators can convert onward to WGSL or MSL)

CUDA C++ / HIP

Compiled by nvcc or hipcc for compute runtimes; kernel languages rather than stages inside a graphics draw pipeline

Capabilities by host environment

Host environment Draw Compute Video

Browser page

WebGL 2, WebGPU

WebGPU (not WebGL 2)

WebCodecs

Stock Node

None of the browser GPU APIs

None of the browser GPU APIs

None of the browser GPU APIs

Windows native

Direct3D 11, Direct3D 12, Vulkan, OpenGL

Direct3D 12, Vulkan, native WebGPU (wgpu/Dawn), plus CUDA on NVIDIA

Media Foundation, vendor SDKs (NVDEC/AMF), Vulkan Video

Linux native

Vulkan, OpenGL

Vulkan, native WebGPU (wgpu/Dawn), plus CUDA (NVIDIA) or ROCm/HIP (AMD) when installed

VA-API, NVDEC/NVENC, Vulkan Video

Apple native

Metal (Vulkan via MoltenVK)

Metal, native WebGPU (wgpu/Dawn), Vulkan compute via MoltenVK

VideoToolbox