News for hackers. Stuff that matters.
Re:Chrome Ships WebGPU by orra on Thursday April 06, 2023 @05:42AM (#35466245)
No SPIR-V was the cost of getting Apple on board.
Re:Chrome Ships WebGPU by madeofpalk on Thursday April 06, 2023 @05:56AM (#35466330)
Re:Chrome Ships WebGPU by flohofwoe on Thursday April 06, 2023 @06:12AM (#35466412)
Apple has a Khronos allergy, and both SPIRV and GLSL are Khronos standards.

Also the original 3D API proposal from Apple was essentially a 1:1 Javascript shim for Metal, which looked quite different from WebGPU.

Apple also originally proposed a custom shading language which looked like - but wasn't quite - HLSL. Compared to that, WGSL is the saner solution (because translation from and to SPIRV is relatively straightforward).

Re:Chrome Ships WebGPU by pjmlp on Friday April 07, 2023 @03:52AM (#35479257)
Mostly caused by how Khronos has managed OpenCL, and ironically Vulkan is slowly adopting HLSL as the main shading language, as they don't plan to invest into improving GLSL any further.
Re:Chrome Ships WebGPU by flohofwoe on Thursday April 06, 2023 @05:55AM (#35466328)
...it's not quite as simple:

http://kvark.github.io/spirv/2021/05/01/spirv-horrors.html

WebGPU would most likely have to create its own subset of SPIRV anyway to fulfill the additional safety and validation requirements of the web platform.