Published: 20 August 2022
Tags: gpu, web
GPU programming is notorious for not being very practical. This is even more-so the case when you're trying to use it on the web. In this article, Steven Wittens presents some of the functionality and features of his "declarative/reactive WebGPU library", Use.GPU.
Some key takeaways are:
- The React derived runtime, Live, is completely self-hosted and is fully rewindable and memoized
- Compute shaders are fully supported
- All of the elements are just components
- WebGPU has made things that were impractical with WebGL practical
- By sacrificing some performance, the implementation and use of the library has become far simpler
- The library has quality-of-life components out of the box, but you can still "crack them open and use the raw parts if they're not right for you"
- Copying how popular software in one domain (this case React) works to another domain can lead to intuitive and easily adopted interfaces