[clang] [HLSL] [SPIR-V] Add counter member for typed buffer (PR #161414)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 2 10:11:57 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);
+ }
----------------
s-perron wrote:
My habit is to always add braces. I'll remove them.
https://github.com/llvm/llvm-project/pull/161414
More information about the cfe-commits
mailing list