================
@@ -2361,6 +2361,94 @@ static bool DiagnoseHLSLRegisterAttribute(Sema &S, 
SourceLocation &ArgLoc,
   return ValidateMultipleRegisterAnnotations(S, D, RegType);
 }
 
+// return false if the slot count exceeds the limit, true otherwise
+static bool AccumulateHLSLResourceSlots(QualType Ty, uint64_t &SlotCount,
+                                        const uint64_t &Limit, ASTContext &Ctx,
+                                        uint64_t Multiplier = 1) {
----------------
tex3d wrote:

It seems to me that `SlotCount` is really like `StartSlot`, and `Multiplier` is 
really like `ArrayCount`.

https://github.com/llvm/llvm-project/pull/174028
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to