[dawn][frontend] Fix error message when @group > maxBindGroups
Bug: None
Change-Id: I09a319c4802dc51000a5ce45fa21ad538c23fdf4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/225016
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/native/ShaderModule.cpp b/src/dawn/native/ShaderModule.cpp
index 9c27632..283d38b 100644
--- a/src/dawn/native/ShaderModule.cpp
+++ b/src/dawn/native/ShaderModule.cpp
@@ -1018,7 +1018,7 @@
if (DelayedInvalidIf(bindGroupIndex >= kMaxBindGroupsTyped,
"The entry-point uses a binding with a group decoration (%u) "
- "that exceeds the maximum (%u).",
+ "that exceeds maxBindGroups (%u) - 1.",
resource.bind_group, kMaxBindGroups) ||
DelayedInvalidIf(bindingNumber >= kMaxBindingsPerBindGroupTyped,
"Binding number (%u) exceeds the maxBindingsPerBindGroup limit (%u).",