From bff04c150245303708360d9ad7162ed6c726dc0a Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Fri, 6 Aug 2021 10:38:35 -0700 Subject: [PATCH] Fix dynamic offset handling for render bundles I found this while testing a "bundlemark" version of bunnymark. --- wgpu-core/src/command/bundle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/command/bundle.rs b/wgpu-core/src/command/bundle.rs index d51e543d19..29ab65eaaf 100644 --- a/wgpu-core/src/command/bundle.rs +++ b/wgpu-core/src/command/bundle.rs @@ -633,7 +633,7 @@ impl RenderBundle { &pipeline_layout_guard[pipeline_layout_id.unwrap()].raw, index as u32, &bind_group.raw, - &offsets[num_dynamic_offsets as usize..], + &offsets[..num_dynamic_offsets as usize], ); offsets = &offsets[num_dynamic_offsets as usize..]; }