[HLSL] Make sure Clang handles uncommon cbuffer
constructs per spec
#118524
Labels
HLSL
HLSL Language Support
cbuffer
constructs per spec
#118524
DXC supports a number of uncommon
cbuffer
declaration uses such as nestedcbuffer
declarations, static variable declaration, namespaces and function declarations insidecbuffer
context. HLSL Language spec will define which of these are allowed or not (microsoft/hlsl-specs#357).This task tracks the implementation of the 'cbuffer' construct features that are allowed. For those that are not we should report an error.
@tex3d put together an example that these various interesting cases here:
https://godbolt.org/z/E4cdx7xj8
Same shader with FXC:
https://shader-playground.timjones.io/39c0683735c0cd79b5970b5116765940
AC:
Depends on: microsoft/hlsl-specs#357
Related issues:
cbuffer
in namespace differently #124064The text was updated successfully, but these errors were encountered: