mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
Merge #1054
1054: Flush write_texture staging memory r=kvark a=kvark **Connections** Fixes part of https://github.com/gfx-rs/wgpu-rs/issues/648 **Description** Adds the missing flush to the staging buffer in `write_texture` **Testing** Untested Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
commit
9d12d623c7
@ -401,6 +401,9 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
}
|
||||
}
|
||||
stage.memory.unmap(&device.raw);
|
||||
if !stage.memory.is_coherent() {
|
||||
stage.memory.flush_range(&device.raw, 0, None)?;
|
||||
}
|
||||
|
||||
let region = hal::command::BufferImageCopy {
|
||||
buffer_offset: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user