You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description cbuffer declarations can occur inside a namespace scope. DXC ignores it and the constant buffer elements must be referenced their local name without the namespace qualifier.
Correct Behavior
DXC should recognize cbuffer declared within a namespace and it should create the constants with a qualified name. The constants cannot be referenced by unqualified names.
@hekota - do we need to do something with this? Do we have offload-test-suite tests verifying the behavior here?
We should fix this. Constants in cbuffer that is declared in a namespace should always be referenced by the fully qualified name ns::a when outside the namespace scope.
Activity
damyanp commentedon Oct 7, 2025
Helena Kotas (@hekota) - do we need to do something with this? Do we have offload-test-suite tests verifying the behavior here?
hekota commentedon Oct 7, 2025
We should fix this. Constants in
cbufferthat is declared in a namespace should always be referenced by the fully qualified namens::awhen outside the namespace scope.damyanp commentedon Oct 8, 2025
Motivation for this is to allow people to discover in their code won't work in clang.