mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-19 18:33:30 +00:00
Register init-destination buffer in the pending writes
This commit is contained in:
parent
9d35aea08e
commit
992e240938
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user