never talked myself into learning WebGL because GL is such a messy API and Javascript is such a messy language, but WebGPU addresses at least the first half of that1 and Safari is starting to support WebGPU so I’ve finally been getting into it.
GPU programming can be fun as hell but Metal (my preferred environment) is only on Apple platforms and DX12 (which I gather is broadly similar) is not on said platforms so there’s been nothing2 that I could use to make something people could play with that worked everywhere; WebGPU seems like it’ll be the answer to that.
this image is basically a “hello triangle” but with a twist: the render pass is using data that’s populated by a preceding compute pass. it was surprisingly straightforward to set up which makes me very excited to build something real.
-
the second half of that is supposedly addressed by TypeScript but I have an irrational distaste for Node so I cannot compile TypeScript
-
no, not Vulkan—my distaste for that is extremely rational because life is too fucking short