WebGPU
JavaScript API for rendering and compute on GPUs.
Contents
Browser support
Articles
By Dzmitry Malyshau.
By Tianqi Chen & Jared Roesch.
By Brandon Jones.
By Brandon Jones.
By Surma.
By Tomasz Czajecki.
By Amir Sojoodi.
By Tianqi Chen & Jared Roesch.
By Surma.
Demos
Official list of examples from the wgpu library - [Repository]
An Image processing app built using Thimbleberry, by mighdoll - [Repository]
A set of samples and demos demonstrating the use of the WebGPU API - [Repository]
Scene render comparison between WebGL, WebGL 2.0 and WebGPU, by Brandon Jones - [Repository]
By Brandon Jones - [Repository]
By Brandon Jones - [Repository]
By Brandon Jones - [Repository]
By Takahiro - [Repository]
A collection of examples from three.js using the WebGPU renderer - [Repository]
A Halloween-themed, open source Breakout clone, by Brandon Jones - [Repository]
Calculate and render particles, by Daniel Toplak - [Repository]
An online calculator, but you can only use it on your remote friend's GPU (via WebRTC) - [Repository]
A few examples of rendering algorithms implemented in WebGPU, by Tarek Sherif - [Repository]
A playground to experiment with WebGPU, by @06wj - [Repository]
A fork of dawn with Ray tracing extensions, by Felix Maier.
A wgpu stress test, by Alexis Andre.
An implementation of "Real-Time Fluid Dynamics for Games" paper, by kishimisu - [Repository]
Demos and experiments, focused on compute shaders, by Sebastian Macke - [Repository]
A collection of WebGPU examples by Hepp Maccoy - [Repository]
An implementation of the image generator AI model, by CMU, OctoML, Catalyst et al - [Repository]
LLM inference engine, by CMU, University of Washington, OctoML, et al - [Repository]
A node based shader editor, by deepkolos - [Repository]
Memory models testing suite, by Reese Levine et al., UC Santa Cruz - [Repository]
Marching cubes implementation, by Conor O'Malley - [Repository]
A path tracer powered by WebGPU compute shaders, by Fermin Lozano - [Repository]
A real-time ray tracer implementing ReSTIR algorithm - [Repository]
Tutorials
A tutorial to create a glTF model viewer, by Will Usher.
By @hjlld.
How to build a complete rasterizer using compute shaders, by Omar Shehata.
A tutorial on WebGPU for Desktop applications using wgpu or Dawn, by @eliemichel.
Libraries
C/C++ headers.
Simple STB-style cross-platform libraries for C and C++.
JavaScript WbeGPU library, by @redcamel.
.NET bindings, built on top of wgpu.
glTF viewer based on a WebGPU backend.
Micro WebGPU rendering & compute library.
A WebGPU Shading Language parser and reflection library for JavaScript.
WebGPU Graphics Engine.
A single-file zero-overhead C++ idiomatic wrapper, by @eliemichel.
A basic rendering engine based on WebGPU, by junwei.gu.
WebGPU Ray Tracing Extension.
A Simple WebGPU Game Engine.
React Native implementation of WebGPU using Dawn.
A WebGPU framework to access compute shaders, browser or server-side, without the steep learning curve.
High-performance charting library built on WebGPU, handles 1M+ data points at 60fps.
WGSL extensions for import, @if, and more.