Fix the validation of max_bindings_per_bind_group

This commit is contained in:
Nicolas Silva authored and Teodor Tanasoaia committed 2024-02-06 15:03:19 +01:00
1 parent faed98b45c
commit 20fda69834
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ impl EntryMap {
) -> Result<Self, binding_model::CreateBindGroupLayoutError> {
let mut inner = FastIndexMap::with_capacity_and_hasher(entries.len(), Default::default());
for entry in entries {
if entry.binding > device_limits.max_bindings_per_bind_group {
if entry.binding >= device_limits.max_bindings_per_bind_group {
return Err(
binding_model::CreateBindGroupLayoutError::InvalidBindingIndex {
binding: entry.binding,