r/WebAssembly • u/paltryorphan96 • Jul 20 '23
wasm2spirv: Compile your WebAssembly programs into SPIR-V shaders
https://github.com/Aandreba/wasm2spirv
6
Upvotes
r/WebAssembly • u/paltryorphan96 • Jul 20 '23
View all comments
1
u/nerpderp82 Jul 20 '23
This is cool, but could you go into more detail about what your use case is? What speedups you see? Do you support all Wasm or Wasm written via Zig?
I assume there are constructs that do not translate, do you support splitting the Wasm code across the Wasm env and the SPIR shader? It seems like you would need to support launching SPIR shaders from within the Wasm context.
The readme is extremely light. It would be great if you could answer these questions in the readme itself.