Caniuse is currently incorrect about Safari btw. It used to have a webgpu implementation in the Safari tech preview build, but the Safari team withdrew it a while ago because they are currently rewriting it.
I think this is partly because their implementation was of an older version of the standard.
As mentioned in the weekend thread[0], I wrote a WebGPU “hello world” type demo that fits in a single HTML page (no NPM dependencies or build steps). There’s quite a few comments in the source, so it might be a useful resource for people like me who have been out of the graphics game for a long time.
I’m not seeing anything in either Firefox or Chromium. From error console:
Oh I guess this is because it’s brand new: https://en.wikipedia.org/wiki/WebGPU
Implementation status according to the webgpu docs (https://github.com/gpuweb/gpuweb/wiki/Implementation-Status). Incidentally this is where wikipedia’s “Official website” link redirects, which is a bit strange
Quick summary:
Chrome Canary and Edge Canary: available on Chrome OS, Mac, and Windows. Available behind a flag on Android and Linux.
Firefox Nightly: Available on Windows and Linux. Behind a flag for macOS and Android
Safari Technology Preview: Available behind a flag
Apparently not yet in any stable release channel.
Caniuse is currently incorrect about Safari btw. It used to have a webgpu implementation in the Safari tech preview build, but the Safari team withdrew it a while ago because they are currently rewriting it.
I think this is partly because their implementation was of an older version of the standard.
WebGPU is enabled on some platforms in stable Chrome v113, which started rolling out a few days ago.
https://developer.chrome.com/blog/webgpu-release/
https://chromereleases.googleblog.com/2023/05/stable-channel-update-for-desktop.html
It’s working for me out of the box with Firefox Nightly on Android :-).
As mentioned in the weekend thread[0], I wrote a WebGPU “hello world” type demo that fits in a single HTML page (no NPM dependencies or build steps). There’s quite a few comments in the source, so it might be a useful resource for people like me who have been out of the graphics game for a long time.
[0] https://lobste.rs/s/q5aymk/what_are_you_doing_this_weekend#c_sgi2jx