(Replying to PARENT post)
The SPIR-V for WebGPU has the subsetting of the language at [1], validation is fully implemented in spirv-val and as are the safety checks in spirv-opt.
SPIR-V is also proven to compile to all the target APIs for WebGPU, while WSL only has a MSL transpiler right now.
[1] https://github.com/gpuweb/spirv-execution-env/blob/master/ex...
๐คkangz๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
This is arguably ahead of the proposed web dialect of SPIR-V (which needs to subset the language, add validation steps, and insert safety checks).