Merge pull request #1773 from pythonesque/patch-1

Fix dynamic offset handling for render bundles
This commit is contained in:
Connor Fitzgerald 2021-08-06 13:55:51 -04:00 committed by GitHub
commit 7798534d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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..];
}