4 ms·
That was the alleged (but false) reason they picked WGSL over SPIR-V, not the justification for designing WebGPU. Vulkan’s C API isn’t really compatible at all
by seoaeu 5y ago
That was the alleged (but false) reason they picked WGSL over SPIR-V, not the justification for designing WebGPU. Vulkan’s C API isn’t really compatible at all with JavaScript and has memory safety concerns and so forth. WebGPU has a slightly restricted, but vastly nicer interface. Plus there are a bunch of downsides to require browsers to emulate Vulkan over DirectX or Metal.