Skip to content

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

PlatformChromeFirefoxSafari
Windows113+ (D3D12)141+
macOS113+26+
ChromeOS113+ (Vulkan)
Android121+ (Qualcomm/ARM, Android 12+)
LinuxComing 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:

LibraryStatus
Babylon.jsFull WebGPU support
TensorFlow.jsWebGPU-optimized operators
Three.jsIn progress (examples available)
PlayCanvasInitial support

Native Portability Libraries

Both Dawn (Chromium) and wgpu (Firefox) are available as standalone packages offering great portability:

Resources

ResourceLink
W3C WebGPU Spechttps://gpuweb.github.io/gpuweb/
WGSL Spechttps://gpuweb.github.io/gpuweb/wgsl/
Sampleshttps://webgpu.github.io/webgpu-samples/
WGSL Tourhttps://google.github.io/tour-of-wgsl/
MDN Docshttps://developer.mozilla.org/docs/Web/API/WebGPU_API
Best Practiceshttps://toji.dev/webgpu-best-practices/
WebGPU Fundamentalshttps://webgpufundamentals.org/
GPU Compute Guidehttps://developer.chrome.com/docs/capabilities/web-apis/gpu-compute

Based on Chrome for Developers WebGPU Documentation