4 ms·
I can't wait to read flohofwoe's thoughts on WebGPU.
by bobajeff 10y ago
I can't wait to read flohofwoe's thoughts on WebGPU.
- flohofwoe 10y agoI think it's great, hopefully SPIR-V will be used for shaders. I guess the current use of MetalSL is a compromise to get the prototype up and running fast. I think that MetalSL is pretty much the perfect shader language, but its compiler shouldn't have to live in the browser.
- glhaynes 10y agoNot too familiar with either - is MetalSL's compiler much more complicated than SPIR-V's, such that it being in the browser would be onerous?
- flohofwoe 10y agoMetalSL is basically a slightly stripped-down C++ with vector math datatypes and some new annotation keywords, but I think it basically requires a complete C++ compiler (Apple's MetalSL compiler is based on LLVM I think). SPIR-V is a bytecode format with the idea that several shader languages could be compiled into SPIR-V (hopefully also MetalSL).