Skip to content

Commit c33b1e8

Browse files
bors[bot]parasyte
andauthored
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 <[email protected]>
2 parents 12d4108 + 5a7b160 commit c33b1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-native/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pub fn adapter_request_device<B: GfxBackend>(
509509
BIND_BUFFER_ALIGNMENT % limits.min_uniform_buffer_offset_alignment,
510510
"Adapter uniform buffer offset alignment not compatible with WGPU"
511511
);
512-
if desc.limits.max_bind_groups == 0 {
512+
if limits.max_bound_descriptor_sets == 0 {
513513
log::warn!("max_bind_groups limit is missing");
514514
} else {
515515
assert!(

0 commit comments

Comments
 (0)