Add lang option to vulkano_shaders::shader! macro for source language selection#2791
Conversation
- set source language for shaderc compiler
|
Side note: In order to support bindless for HLSL we'd need an equivalent of |
|
@CptPotato I can remove the call to |
|
No no, it's fine. |
|
You need to run |
|
@marc0246 done. |
|
Thank you for the PR ❤️ Next, you can add the |
|
@marc0246 You mean you want to call |
|
I mean not using libshaderc or libslang. Because those are libraries that we need to link against, which is more set up for the user, and not necessary because it doesn't end up in the binary anyway. Instead, I would like us to use |
Adds
source_languagefield toMacroInputto support compiling shaders in multiple languages (e.g. HLSL, Slang), motivated by #2622. Changes adapted from #2568 as suggested by @marc0246.Currently adds HLSL as the first supported language variant, which is passed to
shadercduring shader compilation.Closes #2568