Skip to content

Commit

Permalink
fixup! fix(metal): don't depend on BG{,L} entry order
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Mar 29, 2024
1 parent a709356 commit 44946ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/metal/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ impl crate::Device for super::Device {
.iter()
.find(|layout_entry| layout_entry.binding == entry.binding)
.expect("internal error: no layout entry found with binding slot");
(layout, entry)
(entry, layout)
});
for (entry, layout) in layout_and_entry_iter {
let size = layout.count.map_or(1, |c| c.get());
Expand Down

0 comments on commit 44946ae

Please sign in to comment.