mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix the validation of max_bindings_per_bind_group
This commit is contained in:
committed by
Teodor Tanasoaia
parent
faed98b45c
commit
20fda69834
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user