Open andreasschultes opened 2 weeks ago
Can you share with us the shader code that canbe used to reproduce this issue?
The test case for specialization constants reproduce this with the parameter -target spirv -allow-glsl -o test.spv https://github.com/shader-slang/slang/blob/master/tests/spirv/specialization-constant.slang
SPIR-V/Vulkan specialization constants are not generated in SPIRV when -allow-glsl is set.
generates the SpecId "OpDecorate %a SpecId 5"
uses the default values and the constants are optimised out