Chrome ships WebGPU Stay organized with collections Save and categorize content based on your preferences.
After years of development, the Chrome team ships WebGPU which allows high-performance 3D graphics and data-parallel computation on the web.
The Chrome team is thrilled to announce that WebGPU is now available by default in Chrome 113, which is currently in the Beta channel. WebGPU is a new web graphics API that offers significant benefits such as greatly reduced JavaScript workload for the same graphics and more than three times improvements in machine learning model inferences. This is possible due to more flexible GPU programming and access to advanced capabilities that WebGL does not provide.
This initial release of WebGPU is available on ChromeOS, macOS, and Windows. Support for other platforms is coming later this year.
A new dawn for web graphics
WebGPU is a new API for the web, which exposes modern hardware capabilities and allows rendering and computation operations on a GPU, similar to Direct3D 12, Metal, and Vulkan. Unlike the WebGL family of APIs, WebGPU offers access to more advanced GPU features and provides first-class support for general computations on the GPU. The API is designed with the web platform in mind, featuring an idiomatic JavaScript API, integration with promises, support for importing videos, and a polished developer experience with great error messages.
This initial release of WebGPU serves as a building block for future updates and enhancements. The API will offer more advanced graphics features, and developers are encouraged to sendrequests for additional features. The Chrome team also plans to provide deeper access to shader cores for even more machine learning optimizations and additional ergonomics in WGSL, the WebGPU Shading Language.
WebGPU is the result of a collaborative effort by theW3C's "GPU for the Web" Community Group, which includes contributions from major companies such as Mozilla, Apple, Intel, and Microsoft. After six years of development (90 contributors, 2000 commits, 3000 issues), from the initial design in 2017, the first implementation is now available in Chrome, with support for Firefox and Safari in progress.
Both theDawn library for Chromium and thewgpu library for Firefox are available as standalone packages, and they offer great portability and ergonomic layers that abstract OS GPU APIs. Using these libraries in native applications also makes it easier to port toWASM throughEmscripten andRust web-sys.
Browser support
This initial release of WebGPU is available in Chrome 113 on ChromeOS devices with Vulkan support, Windows devices with Direct3D 12 support, and macOS. Linux, Android, and expanded support for existing platforms will come soon.
WebGPU is a work-in-progress inFirefox andSafari, in addition to the initial implementation in Chrome.
Library support
Many widely used WebGL libraries are already in the process of implementing WebGPU support or have already done so. This means that using WebGPU may only require making a single line change:
- Babylon.js has full WebGPU support already.
- PlayCanvas announced initial WebGPU support.
- TensorFlow.js supports WebGPU-optimized versions of most operators.
- Three.js WebGPU support is underway, seeexamples.
Resources
WebGPU is a significant technology, and we recommend the following resources to learn more:
- Check out the W3C specifications forWebGPU andWGSL.
- Experiment withsamples and explore WGSL with atour.
- Look at theMDN documentation.
- Read the officialexplainer andbest practices.
- Learn aboutGPU compute andmore.
Acknowledgments
Many thanks to all Chromium contributors and especially to Intel folks for their invaluable support in making this possible.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-06 UTC.

