[clang] [HLSL] [SPIR-V] Add counter member for typed buffer (PR #161414)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 2 11:09:55 PDT 2025


================
@@ -722,8 +790,32 @@ BuiltinTypeDeclBuilder::addMemberVariable(StringRef Name, QualType Type,
   return *this;
 }
 
+BuiltinTypeDeclBuilder &
+BuiltinTypeDeclBuilder::addBufferHandles(ResourceClass RC, bool IsROV,
+                                         bool RawBuffer, bool HasCounter,
+                                         AccessSpecifier Access) {
+  addHandleMember(RC, IsROV, RawBuffer, Access);
+  if (HasCounter) {
+    addCounterHandleMember(RC, IsROV, RawBuffer, Access);
+  }
----------------
hekota wrote:

I get that! :) It's something I had to get used to as well.

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


More information about the cfe-commits mailing list