Clone this wiki locally
This page shows the current implementation status of the WebGPU API spec in browsers. It also lists some resources (samples, demos) for enthusiastic web developers. Also note the WebGPU Shading Language spec that's hosted separately.
The firstname.lastname@example.org mailing list is a good place to ask questions or provide feedback on the API.
- A pre-release version of WebGPU is available in Chrome on Mac/Windows/Chrome OS, via Origin Trial.
- For details, look at the Dawn bug tracker, bugs under Chromium root issue 852089, and in the Blink>WebGPU component. Check these before filing new bugs.
- Note Chromium currently supports SPIR-V, but support will be removed in favor of WGSL, which is under development.
- As GPU sandboxing isn't fully implemented yet for the WebGPU API, it is possible to read GPU data for other processes and tabs. Avoid leaving it enabled when browsing the untrusted web.
chrome://flags/#enable-unsafe-webgpuflag must be enabled on supported platforms. Linux experimental support requires running browser with
These browser implementations are based on wgpu project in Rust.
- WGSL shaders
- overridable constants
- behavioral analysis
- uniformity analysis (present currently, but not up to spec)
- buffer mapping
- core features:
- render bundles
- error model
- error scopes
- graceful device lost handling
|present surface sharing|
Work is in progress in Nightly, enabled by the "dom.webgpu.enabled" pref. It requires WebRender, which may be enabled by "gfx.webrender.all" pref if it's not already enabled by default. It's been shown to work on Windows 7/10, macOS, Linux (with Vulkan support), and even Android (also with Vulkan).
All the issues and feature requests are tracked by the Graphics: WebGPU component in BugZilla.
Work in progress, enabled by "dom.webgpu.enabled" pref.
Work is in progress in Safari Technology Preview.
To enable WebGPU, first make sure the Develop menu is visible using
Show Develop menu in menu bar. Then, in the
Develop menu, make sure
Experimental Features →
WebGPU is checked. Avoid leaving it enabled when browsing the untrusted web.
Bugs can be viewed and filed here.
webgpu-samples for Chrome and Firefox (uses WGSL, or GLSL via SPIR-V)
WebKit/Safari Demos (uses WSL)
hello-webgpu-compute.glitch.me: simple demo with both the SPIR-V and WSL paths
- Spookyball - 3D version of "Breakout", Halloween theme.
- WebGPU Playground - a student project at Imperial College London. feedback