|Status||Working Draft (WD)|
|Year started||18 May 2021|
|First published||18 May 2021|
|Latest version||Editor's Working Draft|
18 May 2022
Unlike WebGL, WebGPU is not a direct port of any existing native API. It is based on APIs provided by Vulkan, Metal, and Direct3D 12 and is intended to provide high performance across mobile and desktop platforms. Mobile platforms will be limited in creation of
WebGPUDevice objects that will require modern graphics APIs (mentioned above).[note 1]
On June 8, 2016, Google showed "Explicit web graphics API" presentation to the WebGL working group (during the bi-annual face to face meeting). The presentation explored the basic ideas and principles of building a new API to eventually replace WebGL, aka "WebGL Next".
On January 24, 2017, Khronos hosted an IP-free meeting dedicated to discussion of "WebGL Next" ideas, collided with WebGL working group meeting in Vancouver. Google team presented the NXT prototype implementing a new API that could run in Chromium with OpenGL, or standalone with OpenGL and Metal. NXT borrowed concepts from all of Vulkan, Direct3D 12, and Metal native APIs. Apple and Mozilla representatives also showed their prototypes built on Safari and Servo correspondingly, both of which closely replicated the Metal API.
W3C Working Group
On February 7, 2017, Apple's WebKit team proposed the creation of the W3C community group to design the API. At the same time they announced a technical proof of concept and proposal under the name "WebGPU", based on concepts in Apple's Metal. The WebGPU name was later adopted by the community group as a working name for the future standard rather than just Apple's initial proposal. The initial proposal has been renamed to "WebMetal" to avoid further confusion.
The W3C "GPU for the Web" Community Group was launched on February 16, 2017. At this time, all of Apple, Google, and Mozilla had experiments in the area, but only Apple's proposal was officially submitted to the "gpuweb-proposals" repository. Shortly after, on March 21, 2017, Mozilla submitted a proposal for WebGL Next within Khronos repository, based on the Vulkan design.
This article needs to be updated.(May 2022)
WebGPU uses its own shading language called WGSL that is trivially translatable to SPIR-V. This choice is a compromise among three proposals: Metal by Apple, HLSL / WSL by Apple Safari, and binary SPIR-V by Mozilla. Tint is a Google-made compiler for WGSL.
Both Chrome and Firefox support WebGPU with SPIR-V, with work ongoing for the WGSL front-end. Safari supports WebGPU with WSL.
- "[...] WebGPUDevice will require the native platform to expose a modern graphics API: [...]"
- "GPU for the Web Community Group". w3.org. Retrieved 2018-09-11.
- Google (2019-08-01). "googlearchive/nxt-standalone: DO NOT USE, UPSTREAM REPO IS https://dawn.googlesource.com/dawn". GitHub. Retrieved 2021-12-25.
- "Origin Trials". developer.chrome.com. Retrieved 2021-09-26.
- "WebGPU - Chrome Platform Status". chromestatus.com. Retrieved 2022-05-05.
- Wallez, Corentin. "Explicit web graphics API". Retrieved 2019-06-25.
- Wallez, Corentin; Ninomiya, Kai. "WebGL Next investigations". Retrieved 2019-06-25.
- "Next-generation 3D Graphics on the Web". WebKit. 2017-02-07. Retrieved 2018-08-13.
- "Apple seeks to position Metal as part of new 3D graphics standard for web". AppleInsider. Retrieved 2018-08-13.
- Claburn, Thomas (2017-02-08). "Web-standards-allergic Apple unveils WebGPU, a web graphics standard". The Register. Retrieved 2017-08-14.
- "WebGPU Prototype and Demos". WebKit. 2017-04-05. Retrieved 2019-01-10.
- Jackson, Dean (2017-02-16). "Welcome and Getting Started". public-gpu (Mailing list). Retrieved 2018-09-11.
- Jackson, Dean. "Add Apple's WebGPU proposal". GitHub. Retrieved 2019-03-08.
- Malyshau, Dzmitry. "Prototyping a new 3D API for the Web". Retrieved 2016-12-16.
- Malyshau, Dzmitry (2017-03-21). "Defining the Web platform". Retrieved 2018-09-11.
- Malyshau, Dzmitry. "Mozilla's contribution: Obsidian API". GitHub. Retrieved 2019-03-08.
- WebGPU Shading Language specification
- "Implementation Status". GitHub. gpuweb.