From df54bc49dce89f4387f20c72072d4a3bd25500aa Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 24 Feb 2023 00:15:39 -0800 Subject: [PATCH] [msl-out]: Delete unused variable. (#3526) --- wgpu-hal/src/metal/device.rs | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/wgpu-hal/src/metal/device.rs b/wgpu-hal/src/metal/device.rs index e065d2f1b..4a4e19fa2 100644 --- a/wgpu-hal/src/metal/device.rs +++ b/wgpu-hal/src/metal/device.rs @@ -548,30 +548,17 @@ impl crate::Device for super::Device { // Second, place the described resources for (group_index, &bgl) in desc.bind_group_layouts.iter().enumerate() { // remember where the resources for this set start at each shader stage - let mut dynamic_buffers = Vec::new(); let base_resource_indices = stage_data.map(|info| info.counters.clone()); for entry in bgl.entries.iter() { if let wgt::BindingType::Buffer { - ty, - has_dynamic_offset, - min_binding_size: _, + ty: wgt::BufferBindingType::Storage { .. }, + .. } = entry.ty { - if has_dynamic_offset { - dynamic_buffers.push(stage_data.map(|info| { - if entry.visibility.contains(map_naga_stage(info.stage)) { - info.counters.buffers - } else { - !0 - } - })); - } - if let wgt::BufferBindingType::Storage { .. } = ty { - for info in stage_data.iter_mut() { - if entry.visibility.contains(map_naga_stage(info.stage)) { - info.sizes_count += 1; - } + for info in stage_data.iter_mut() { + if entry.visibility.contains(map_naga_stage(info.stage)) { + info.sizes_count += 1; } } }