Description
This issue handles "plugging-in" the root signature parser into the generation of the AST node. It consists of initializing an HLSLRootSignatureAttr
with the parsed HLSLRootElements
.
Root signatures are defined as a list of "root elements" and so the in-memory representation will retain this form.
This is dependent on #120472.
AC:
- Define
HLSLRootSignatureAttr
inAttr.td
- Use
AdditionalMembers
to hold an ArrayRef ofHLSLRootElement
s - Define
handleHLSLRootSignature
inSemaHLSL.h
- Implement
handleHLSLRootSignature
inSemaHLSL.cpp
to simply invoke the parser and construct the Root Elements on the ASTContext, then set theAdditionalMembers
to refence that - Add test of a practical root signature example generated AST with
ast-dump
inAST/HLSL/RootSignatures-AST.hlsl
Metadata
Metadata
Assignees
Type
Projects
Status
Closed