Lably
Skip to content

WebGPU

Web standard and API

  • 3 min read
  • 3 chapters

Related on Lably

Through JavaScript, Web browser and Python (programming language)

In JavaScript, WebGPU can be provided by a web browser or other JavaScript environment like Node.js and Deno. Rust and C++ can use their respective implementations of the WebGPU specification. Other languages like Python, Java, and Go can use WebGPU by extending the C language specification, while Go can also use a native pure Go implementation (see Implementations section).

Google Chrome and Microsoft Edge first released WebGPU support in April 2023. Safari debuted WebGPU support in June 2025 with Safari 26. Firefox first released WebGPU in July 2025 with Firefox 141. The W3C standard is a candidate recommendation.

Technology

WebGPU enables 3D graphics within an HTML canvas. It also has robust support for general-purpose GPU computations.

WebGPU uses its own shading language called WebGPU Shading Language (WGSL) that was designed to be trivially translatable to SPIR-V, until complaints caused redirection into a more traditional design, similar to other shading languages. The syntax is similar to Rust. Tint is a Google-made compiler for WGSL. Naga is a similar project developed for the needs of wgpu-rs.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication