shader-slang / slang

Making it easier to work with shaders
http://shader-slang.com
MIT License
2.17k stars 187 forks source link

slang-test: Add support for WGSL #5051

Closed aleino-nv closed 1 month ago

aleino-nv commented 1 month ago

We should be able to run slang-test targeting wgpu and wgsl-spirv-asm

aleino-nv commented 1 month ago

Blocked on #5052

jkwak-work commented 1 month ago

I like to say this is only partially blocked by #5052. slang-test should still be able to invoke the downstream compiler without running the shader on the HW. Basically we need a compiler target, "-target wgsl-asm" for WGSL like what Metal has with "-target metallib".

aleino-nv commented 1 month ago

Yeah, I wasn't aware of the wgsl-asm option... In any case, we do need RHI for full testing that runs shaders.

aleino-nv commented 1 month ago

The CI part of this is now tracked in https://github.com/shader-slang/slang/issues/5233