[clang] [HLSL] Codegen for indexing of sub-arrays of multi-dimensional resource arrays (PR #154248)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 25 07:33:18 PDT 2025
================
@@ -190,6 +192,71 @@ static void createResourceCtorArgs(CodeGenModule &CGM, CXXConstructorDecl *CD,
Args.add(RValue::get(NameStr), AST.getPointerType(AST.CharTy.withConst()));
}
+// Initializes local resource array variable. For multi-dimensional arrays it
+// calls itself recursively to initialize its sub-arrays. The Index used in the
+// resource constructor calls will begin at StartIndex and will be incremented
+// for each array element. The last last used resource Index is returned to the
----------------
s-perron wrote:
```suggestion
// for each array element. The last used resource Index is returned to the
```
https://github.com/llvm/llvm-project/pull/154248
More information about the cfe-commits
mailing list