Devii · Frontend · 2026-06-10 · 8 min read
WebGPU: GPU Compute And Graphics In The Browser
W3C WebGPU brings modern GPU access to the web; relationship to WebGL and baseline support in 2026.
**WebGPU** is a W3C API exposing modern GPU features (buffers, pipelines, compute shaders) to JavaScript with a descriptor-based model closer to Vulkan, Metal, and D3D12 than legacy **WebGL**.
Major browsers shipped WebGPU in stable channels across 2023 to 2025; verify `caniuse.com` for your audience. WebGL remains relevant for older targets and existing engines.
Use cases include interactive visualizations, image processing, ML inference helpers in the client, and game engines porting render paths. Fallback paths matter when GPU drivers block features.
Read the spec on `gpuweb.github.io` and MDN guides. Shader languages use **WGSL** by default in the web profile. Respect user battery and thermal limits on laptops and phones.