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:
Oskar Nehlin
2020-07-06 20:14:09 +02:00
committed by GitHub
parent 35481a5615
commit 5b4b695ad3

View File

@@ -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"
);
}