Show HN: Free e-book about WebGPU Programming (opens in a new tab)shi-yan.github.io
471 pointsI am excited to announce the launch of my e-book on Graphics/WebGPU programming! This project has consumed much of my spare time, during which I developed various tools to facilitate the publishing process, including a code playground and a static site generator that can reference sample codes.
However, I'm feeling burnt out and ready to call it finished, even though it may not feel completely done. Avoiding another abandoned side project has been my primary motivation in reaching this point.

Comments (73) 18 threads
On the plus side, it makes me appreciate how wonderful it is to have modern dev tooling when I’m working on literally anything else.
The problem is that people are reaching out to it, as means to avoid the Vulkan mess, when the real alternative is middleware engines.
Documentation will keep improving with time. There have already been a number of high-quality tutorials and references created over the past few years, for example:
https://webgpufundamentals.org/ for JavaScript/the web API
https://sotrh.github.io/learn-wgpu/ for Rust (web or native)
https://eliemichel.github.io/LearnWebGPU/ for C++
Continue this thread — 1 reply
Is there even a good Middleware engine that can also target web? My impressions are that both Unity and Unreal expressed interest in WebGPU support, but what's publicly available is pretty barebones.
Also, I imagine the people working with WebGPU to begin with are either hobbyists, looking to learn and work in a professional role with WebGPU, or are in fact making that future Middleware (be it proprietary or open source).
Continue this thread — 1 reply
> However, I'm feeling burnt out and ready to call it finished, even though it may not feel completely done. Avoiding another abandoned side project has been my primary motivation in reaching this point.
Thank you for spending your time to produce this excellent resource and releasing it to us. Don’t feel too bad about it not being all the way where you’d like it to be. You can always improve it later, or even allow the community to help you improve it.
In case it's interesting to anyone, I did just go on a big bug-filing spree for Firefox. There are a handful of issues (that were already on the Firefox team's radar) to resolve before all of these playgrounds work as-is: https://bugzilla.mozilla.org/show_bug.cgi?id=webgpu-unleashe...
1. The playground code does not seem to fully work on Safari. The code is there and selectable but the glyphs are invisible.
EDIT: My Safari was just bugged, had to restart it and it works
2. Is the cover of the book on the right of the playground supposed to change depending on which example you are looking at? I think it could be nice if the book contents were rendered alongside the code if the user wanted instead of the cover which does not change.
I have WebGPU enabled in Safari through a preview flag, and running the playground examples worked fine.
All comments shown.
Couldn't load more comments. Check your connection and try again.