4 ms·
> what's the difference between WebGPU, and WebGL WebGL has a bunch of limitations, but a big one is that you can only use the gpu to move around triangles ver
by jakkos 1y ago
> what's the difference between WebGPU, and WebGL
WebGL has a bunch of limitations, but a big one is that you can only use the gpu to move around triangles vertices (vertex shader) and color them in (pixel shader).
If you want to do something like that cool water simulation you have to do some painful hackery to pretend all your data is actually vertices or colors in a texture. Even with hackery, there's still lots of things you simply can't do.
WebGPU supports compute shaders which let you read and write whatever data you want.