[HLSL] Add ConstantBuffer
template definition to HLSLExternalSemaSource and enable direct member access
#112993
Labels
HLSL
HLSL Language Support
Add
ConstantBuffer
definition to HLSLExternalSemaSource. The resource definition will contain a handle that will be lowered to adx.CBuffer
target extension type.Note that members of a struct that is passed as a template argument to
ConstantBuffer
can be accessed directly as if they are members of theConstantBuffer
class.https://godbolt.org/z/6GdE383j3
Refer to Proposal for mapping resource attributes for resource attribute mapping.
The text was updated successfully, but these errors were encountered: