mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
update synchronization, fix last errors in wgc
This commit is contained in:
1 parent
0a82c232ba
commit
ff2a3e84fc
16 files changed
+253
-255
No files matched your search
@@ -627,14 +627,18 @@ impl<A: HalApi, F: GlobalIdentityHandlerFactory> Hub<A, F> {
|
||||
if let Element::Occupied(command_buffer, _) = element {
|
||||
let device = &devices[command_buffer.device_id.value];
|
||||
for raw in command_buffer.raw {
|
||||
device.raw.destroy_command_buffer(raw);
|
||||
unsafe {
|
||||
device.raw.destroy_command_buffer(raw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for element in self.bind_groups.data.write().map.drain(..) {
|
||||
if let Element::Occupied(bind_group, _) = element {
|
||||
let device = &devices[bind_group.device_id.value];
|
||||
device.raw.destroy_bind_group(bind_group.raw);
|
||||
unsafe {
|
||||
device.raw.destroy_bind_group(bind_group.raw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user