mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Flush write_texture staging memory
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user