3 ms·
Control-flow oriented languages like JavaScript are not a good fit for GPUs. That's the accepted belief, at least. Allegedly GLSL and HLSL do not come with eno
by rektide 6y ago
Control-flow oriented languages like JavaScript are not a good fit for GPUs. That's the accepted belief, at least.
Allegedly GLSL and HLSL do not come with enough protections / guarantees for anyone to have felt comfortable porting them to the web. That rules them out cleanly.
Also, these are both fairly legacy technologies, both predating Vulkan by a good bit more than a decade. WebGPU at it's core is a remake of Vulkan for the web. Then there's a shading language that works with this base. My understanding is this is a far more competent, capable means of setting up & orchestrating work, so that it can happen & flow effectively on GPUs. Doing less than WebGPU sounds supremely unappealing.