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
{{ message }}
Repository navigation
register declaration applied to member of a cbuffer should be an error #7638
Description
You can apply bogus register declarations on members of a cbuffer as long as they correspond to the legacy constant registers, i.e. b#, c# or i#. Register spaces can be applied too.
Actual Behavior
All of these do nothing and make no logical sense, but are accepted by DXC and emit no diagnostics at all.
Clang does error on almost all of them (with different reasons depending on register type), except if you only supply register space.
Activity