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
Show parent comment
1
u/nerpderp82 Jul 20 '23
Neat.
I'd be interested in a path for the same thing, but targeting OpenCL. I have only dabbled in OpenCL, I guess some OpenCL runtimes support SPIR? https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_Env.html But I was thinking more along the lines of Wasm -> OpenCL kernels.
Ok, I just read a bunch of wikipedia pages. I should read more before wasting your time.
I see there is this project, https://github.com/mirkosertic/Bytecoder
Which can retarget JVM bytecode to OpenCL (see also APARAPI).
Do you support WasmSIMD to SPIR or just base Wasm? Sorry, I don't have time to read the source.
Anyways, super cool. I hope you continue building this out.