| Issue |
182988
|
| Summary |
[HLSL] Create globals for resources in structs (Sema part)
|
| Labels |
HLSL
|
| Assignees |
hekota
|
| Reporter |
hekota
|
This task is for adding support for resources in structs to the Clang front-end.
We need to create an implicit global variable for each resource or resource array that is a member of a struct or class instance declared at the global scope or inside a `cbuffer`. This global will be associated with the struct instance via a new `HLSLAssociatedResourceDeclAttr` attribute. It will have also an attribute specifying its binding based on the register annotations on the struct instance.
Design doc: https://github.com/llvm/wg-hlsl/blob/main/proposals/0038-resources-in-structs.md
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs