mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Register init-destination buffer in the pending writes
This commit is contained in:
1 parent
9d35aea08e
commit
992e240938
1 file changed
+1
@@ -3965,6 +3965,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
device
|
||||
.pending_writes
|
||||
.consume_temp(queue::TempResource::Buffer(stage_buffer), stage_memory);
|
||||
device.pending_writes.dst_buffers.insert(buffer_id);
|
||||
}
|
||||
resource::BufferMapState::Idle => {
|
||||
return Err(resource::BufferAccessError::NotMapped);
|
||||
|
||||
Reference in new issue
Block a user