Issue Description
I had a variable definition on global scope with a semantic qualifier:
static int2 group_thread_id: SV_GroupThreadID
This compiles without error, but the variable does not hold the correct value. This was a very hard to find bug.
Reproducer Code
See above.
Expected Behavior
The variable should either contain the correct value or error when compiling.
Actual Behavior
The shader compiled without error but the variable did not contain the correct value
Environment
- Slang Version 2025.14.3
- OS Arch Linux 6.16.4
- GPU/Driver version AMD / Mesa 1:25.2.2-2 / vulkan-radeon 1:25.2.2-2
Additional context