mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Check parent adaptor limits instead of physical device limits (#761)
* Check parent adaptor limits instead of physical device limits * Fix pr comment
This commit is contained in:
@@ -666,7 +666,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
log::warn!("max_bind_groups limit is missing");
|
||||
} else {
|
||||
assert!(
|
||||
u32::from(limits.max_bound_descriptor_sets) >= desc.limits.max_bind_groups,
|
||||
desc.limits.max_bind_groups <= adapter.limits.max_bind_groups,
|
||||
"Adapter does not support the requested max_bind_groups"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user