-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Closed
Labels
HLSLHLSL Language SupportHLSL Language Support
Description
Constant buffers declared by cbuffer blocks can occur inside a namespace scope. DXC ignores the namespace and the constant buffer elements must be referenced without the namespace qualifier while in Clang the element names must use fully qualified name.
For example this constant buffer:
namespace ns {
cbuffer CB {
float a;
}
}
The float value must be referenced as a in DXC and as ns::a in Clang, otherwise it fails to compile.
https://godbolt.org/z/GMzzMnh6s
This task was filed to track this difference between DXC and Clang and to determine which behavior we want to support.
Once we do that, we need to document it in the language spec (tracked here ) and make sure the implementation matches the spec (tracked here).
Metadata
Metadata
Assignees
Labels
HLSLHLSL Language SupportHLSL Language Support
Type
Projects
Status
Closed