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 binding applied to static variable declaration should be an error #7637
Description
If a user declares a static variable of a resource type and assigns a register binding to it DXC ignores the register binding and compiles the code which can result in runtime failures or validation errors.
Actual Behavior
This should produce a frontend error diagnostic, instead it may produce a validation error under SM 6.5, or fail at runtime under SM 6.6+.
On reflection: the "may" in the description of this implies that there may be people who have shaders do this, but are otherwise working correctly. So we should try get a version of DXC that catches this before they try to compile with clang and hit a new error.
Activity
damyanp commentedon Oct 28, 2025
Set to dormant. If this is somehow important to help people migrate to clang we may want to reconsider.
damyanp commentedon Oct 28, 2025
On reflection: the "may" in the description of this implies that there may be people who have shaders do this, but are otherwise working correctly. So we should try get a version of DXC that catches this before they try to compile with clang and hit a new error.