5 ms·
You can use the SPIR-V compiler toolchain to just transpile from GLSL to WGSL :)
by dassurma 5y ago
You can use the SPIR-V compiler toolchain to just transpile from GLSL to WGSL :)
- flohofwoe 5y agoMinor nitpick: this translation happens in separate libraries/tools which just make use of the SPIRVTools library for some SPIRV processing tasks, but not the actual translation to WGSL. Tint (Google, implemented in C++): https://dawn.googlesource.com/tint/ https://dawn.googlesource.com/tint/ Naga (Mozilla(?), implemented mostly in Rust): https://github.com/gfx-rs/naga https://github.com/gfx-rs/naga Both are a bit similar to SPIRV-Cross, except that they also support WGSL.
- pjmlp 5y agoYes I know, even more fun dealing with additional kludges, because 3D on the Web versus native doesn't have enough of them already.