Master Native 3D Graphics in C++ with the WebGPU API

Learn WebGPU for C++

Master Native 3D Graphics in C++ with the WebGPU API

I created this guide to help you build native 3D applications in C++ from scratch using the WebGPU API across Windows, Linux, and macOS. You can choose to write raw C code or use a C++ wrapper, with options to skip boilerplate or learn every detail. The documentation covers everything from basic rendering and geometry to advanced lighting and compute shaders, ensuring you understand exactly how your GPU code works.

Do you want to understand every bit of GPU code you write? Yes, write WebGPU code from scratch!
  1. ChadNauseam

    This resource taught me WebGPU a couple years ago. I can recommend it. It's the best WebGPU tutorial I've found. (The Rust one is quite good as well.) I used what I learned to make this simple game: https://alexpop11.github.io/Spec-Hops/ (space to drop bombs) and I have eliemichel to thank for that!

  2. minraws

    Nicely built resource, found a couple of nits but pretty good starting point.

    Although I feel like unless you need to specifically target web or extensive cross platform support, a better alternative for a higher level framework/library is nvrhi. Especially for C++ developers.

    And I feel like if you are making for cross platform or web you are likely using Rust or writing your own game engine/library maybe I view of the ecosystem is skewed.

  3. torlok

    I maybe be a complete moron not familiar with Github, but I wanted to have a look at the code and it took me solid 5 minutes of going through the website searching for a link to the repository, and the only one I eventually found was when I scrolled to the bottom and clicked the Github icon. Removing the path from https://eliemichel.github.io/LearnWebGPU/index.html leads to 404, no idea why that doesn't just lead to https://github.com/eliemichel. Don't know if it's just me, but I get unreasonably frustrated by things like this.

More from this day

2026-07-23