| Issue |
182990
|
| Summary |
[HLSL] Codegen for manipulating structs with resources
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
hekota
|
When a struct with resources is assigned to a local variable or passed as a function parameter, CodeGen needs to create a local copy of the struct. Its resource members should be initialized to handles from the corresponding global variables, and resource arrays should be local arrays with each handle element initialized to a handle from its binding.
Note that structs declared at global scope reside in constant address space 2 and use `cbuffer` struct layout. Copying these structs requires HLSL-specific handling (see https://github.com/llvm/llvm-project/issues/153055). Support for copying embedded resources and resource arrays will be built on top of that.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs