[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:
Found it 🥳
[dx-graphics-hlsl-variable-register](https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-variable-register )
https://github.com/llvm/llvm-project/pull/128991
More information about the cfe-commits
mailing list