mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
Merge #372
372: Followup for #356 - fix incorrect check r=kvark a=parasyte @kvark This fixes the fix created in #356 The original patch is checking the _requested descriptor limits_, but the backend limits are what needs to be checked for this edge case. Co-authored-by: Jay Oster <jay@kodewerx.org>
This commit is contained in:
1 file changed
+1
-1
@@ -509,7 +509,7 @@ pub fn adapter_request_device<B: GfxBackend>(
|
||||
BIND_BUFFER_ALIGNMENT % limits.min_uniform_buffer_offset_alignment,
|
||||
"Adapter uniform buffer offset alignment not compatible with WGPU"
|
||||
);
|
||||
if desc.limits.max_bind_groups == 0 {
|
||||
if limits.max_bound_descriptor_sets == 0 {
|
||||
log::warn!("max_bind_groups limit is missing");
|
||||
} else {
|
||||
assert!(
|
||||
|
||||
Reference in new issue
Block a user