3 ms·
> There's no compelling reason why Web Shading Language needs to exist. I'm pretty sure it basically doesn't. WebGPU is supporting WGSL whose #1 goal is to be
by RantyDave 5y ago
> There's no compelling reason why Web Shading Language needs to exist.
I'm pretty sure it basically doesn't. WebGPU is supporting WGSL whose #1 goal is to be "trivially convertible to SPIR-V" (https://www.w3.org/TR/WGSL/#goals https://www.w3.org/TR/WGSL/#goals). In other words, it's text SPIR-V.
- kvark 5y agoIt’s only talking about one way: WGSL->SPIRV, not the reverse. It also has to be trivially convertible to MSL and HLSL. So WGSL is a separate language now, most ties to SPIRV are cut off.