![]() | |
Status | Candidate recommendation (CR) |
---|---|
Year started | 18 May 2021 |
First published | 18 May 2021 |
Latest version | W3C Candidate recommendation (As of 2025) |
Organization | W3C |
Committee |
|
Editors |
|
Related standards | |
Domain | |
Website | www |
WebGPU is a JavaScript, C++, Rust, and C API that allows portably and efficiently utilizing a device's graphics processing unit (GPU). This is achieved with the underlying Vulkan, Metal, or Direct3D 12 system APIs. In JavaScript WebGPU can be provided by a web browser or other JavaScript environment such as node.js and Deno. In C++ it can be provided by a C++ implementation of the WebGPU spec, for example, Dawn . In Rust it can be provided by a Rust implementation of the WebGPU spec, for example, wgpu. Other languages like Python, Java, Go can use an implementation that implements the webgpu.h C spec. In the browser, WebGPU is intended to supersede the older WebGL standard.[1] Outside of the browser it provides an easy to use cross platform API for accessing the GPU, currently working on Vulkan (Linux and Android), DirectX (Windows), and Metal (iPhone, iPad, Mac, AppleTV, Apple Watch).
Google Chrome enabled initial WebGPU support in April 2023.[1][2] Safari and Firefox have not yet enabled theirs.[2] The W3C standard is thus in the working draft phase.