[clang] [llvm] [HLSL] Implement Texture2D::operator[] (PR #186110)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 16 19:08:29 PDT 2026


================
@@ -475,7 +476,7 @@ void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations() {
   onCompletion(Decl, [this](CXXRecordDecl *Decl) {
     setupBufferType(Decl, *SemaPtr, ResourceClass::SRV, /*IsROV=*/false,
                     /*RawBuffer=*/false, /*HasCounter=*/false)
-        .addArraySubscriptOperators()
+        .addArraySubscriptOperators(ResourceDimension::Unknown)
----------------
hekota wrote:

Could you please make `ResourceDimension::Unknown` the default value of the `Dim` argument and we can avoid the edits here?

https://github.com/llvm/llvm-project/pull/186110


More information about the cfe-commits mailing list