points by Yoric 9 years ago

Do you have a 15 seconds explanation on how that's going to be much better than WebGL?

rl3 9 years ago

Sure. WebGL is a sandboxed subset of OpenGL ES 2.0, and WebGL 2 is similarly a derivative of OpenGL ES 3.0.

While both of those APIs offer nearly full programmability, they do so with an API structure that retains a ton of legacy cruft from the days of fixed-function pipelines. Neither are low-level graphics APIs; many assumptions are made. This makes doing general purpose compute tasks on WebGL extremely hacky at best.

Think of WebGPU as Vulkan or Metal for the web. Lower level with much more work, but ultimately cleaner with superior performance and capability.

noiv 9 years ago

ELI7: WebGL crunches numbers fast to end up as pixels, WebGPU crunches numbers fast to end up as numbers again.

  • Yoric 9 years ago

    Got it, thanks for the clear explanation.

    So this means that we'll soon have web ads mining bitcoins using our GPUs, right? :)