[clang] [Hlsl][Spirv] Don't emit global variables for structs containing resources (PR #234797)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 8 20:19:19 PST 2026
rj123-nv wrote:
Before I found out about the issue with local-arg, I was considering another approach to this which would be to just give these resource-only (array of) structs hlsl_constant address space. That might make the local-arg case simpler, but I'm not totally sure. The downside I felt was it kind of muddies how that address space should be understood from a reader's perspective.
https://github.com/llvm/llvm-project/pull/234797
More information about the cfe-commits
mailing list