[clang] [llvm] [HLSL] Implement explicit layout for default constant buffer ($Globals) (PR #128991)
Alex Sepkowski via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 09:44:04 PDT 2025
================
@@ -174,21 +176,45 @@ createBufferHandleType(const HLSLBufferDecl *BufDecl) {
return cast<HLSLAttributedResourceType>(QT.getTypePtr());
}
+// Iterates over all declarations in the HLSL buffer and based on the
+// packoffset or register(c#) annotations it fills outs the Layout
----------------
alsepkow wrote:
Just curious, what is 'register(c#)' annotation? I didn't get any hits trying to search it online or with copilot.
https://github.com/llvm/llvm-project/pull/128991
More information about the cfe-commits
mailing list