[clang] [HLSL] Support packoffset attribute in AST (PR #89836)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 24 22:31:17 PDT 2024
================
@@ -7398,6 +7398,26 @@ The full documentation is available here: https://docs.microsoft.com/en-us/windo
}];
}
+def HLSLPackOffsetDocs : Documentation {
+ let Category = DocCatFunction;
+ let Content = [{
+The packoffset attribute is used to change the layout of a cbuffer.
+Attribute spelling in HLSL is: ``packoffset(c[Subcomponent[.component]])``.
----------------
hekota wrote:
This is different from the doc linked below that has:
`packoffset( c[Subcomponent][.component] )`
https://github.com/llvm/llvm-project/pull/89836
More information about the cfe-commits
mailing list