by modeless · 5y ago · 0 comments
I understand why. The extremely proprietary and platform specific nature of graphics APIs and hardware makes it hard. WebGPU is a good choice for portability.
It will be nice to finally have a portable 3D API that's sanely designed (unlike OpenGL) and that non-experts can be expected to handle (unlike Vulkan)
WebGPU is not much easier than Vulkan, simpler yes, but still too much boilerplate to set everything up and running.
I'd love the multi platform support of OpenGL with the features all the new APIs bring.
to me both look similarly horrifying:
http://austin-eng.com/webgpu-samples/samples/rotatingCube?wg...
Edit: I believe the bug you linked below (https://bugs.chromium.org/p/project-zero/issues/detail?id=20...) can't be exploited through WebGL or WebGPU in the browser because all GPU access is remoted to a separate process with a special GPU sandbox. I don't know if Deno does this but it should.
[0]: https://bugs.chromium.org/p/project-zero/issues/detail?id=20...
And hardware bugs, crappy drivers, etc