Overview of WebGPU
Fresh 🌱Source: Overview of WebGPULast Updated: August 11, 2025
WebGPU is a web graphics API that offers significant benefits over WebGL:
- Greatly reduced JavaScript workload for the same graphics
- 3x+ improvements in machine learning model inferences
- Flexible GPU programming and access to advanced GPU capabilities
- Idiomatic JavaScript API with promises, clear error messages, and video import support
WebGPU is the result of collaborative effort by the W3C "GPU for the Web" Community Group, with contributions from Mozilla, Apple, Intel, and Microsoft.
Browser Support
| Platform | Chrome | Firefox | Safari |
|---|---|---|---|
| Windows | 113+ (D3D12) | 141+ | — |
| macOS | 113+ | — | 26+ |
| ChromeOS | 113+ (Vulkan) | — | — |
| Android | 121+ (Qualcomm/ARM, Android 12+) | — | — |
| Linux | Coming soon | — | — |
For real-time implementation status, see the gpuweb implementation status page.
Library Support
Major WebGL libraries are already implementing or have implemented WebGPU support — often requiring just a single line change:
| Library | Status |
|---|---|
| Babylon.js | Full WebGPU support |
| TensorFlow.js | WebGPU-optimized operators |
| Three.js | In progress (examples available) |
| PlayCanvas | Initial support |
Native Portability Libraries
Both Dawn (Chromium) and wgpu (Firefox) are available as standalone packages offering great portability:
- Abstract OS GPU APIs (Vulkan, D3D12, Metal)
- Native apps can port to WASM via Emscripten and Rust web-sys
Resources
| Resource | Link |
|---|---|
| W3C WebGPU Spec | https://gpuweb.github.io/gpuweb/ |
| WGSL Spec | https://gpuweb.github.io/gpuweb/wgsl/ |
| Samples | https://webgpu.github.io/webgpu-samples/ |
| WGSL Tour | https://google.github.io/tour-of-wgsl/ |
| MDN Docs | https://developer.mozilla.org/docs/Web/API/WebGPU_API |
| Best Practices | https://toji.dev/webgpu-best-practices/ |
| WebGPU Fundamentals | https://webgpufundamentals.org/ |
| GPU Compute Guide | https://developer.chrome.com/docs/capabilities/web-apis/gpu-compute |