Skip to content

Semantic qualifiers on a global semantics without in should error #8435

@LDAP

Description

@LDAP

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

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions