Fix bind groups set on a compute encoder

This commit is contained in:
Dzmitry Malyshau
2019-07-02 13:11:02 -04:00
parent dbef9f397e
commit 14d0a24f81

View File

@@ -65,7 +65,12 @@ pub extern "C" fn wgpu_compute_pass_set_bind_group(
let mut pass_guard = HUB.compute_passes.write();
let pass = &mut pass_guard[pass_id];
let bind_group_guard = HUB.bind_groups.read();
let bind_group = &bind_group_guard[bind_group_id];
let bind_group = pass
.trackers
.bind_groups
.use_extend(&*bind_group_guard, bind_group_id, (), ())
.unwrap();
assert_eq!(bind_group.dynamic_count, offsets_length);
let offsets = if offsets_length != 0 {