1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Update to wgpu 25 (#6744)

Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
TÖRÖK Attila
2025-05-10 13:16:49 +02:00
committed by GitHub
parent e9609ac94e
commit 773232b139
7 changed files with 154 additions and 102 deletions

View File

@@ -47,7 +47,9 @@ pub(crate) fn texture_to_image(device: &Device, queue: &Queue, texture: &Texture
buffer_slice.map_async(wgpu::MapMode::Read, move |v| drop(sender.send(v)));
// Poll the device in a blocking manner so that our future resolves.
device.poll(wgpu::Maintain::WaitForSubmissionIndex(submission_index));
device
.poll(wgpu::PollType::WaitForSubmissionIndex(submission_index))
.expect("Failed to poll device");
receiver.recv().unwrap().unwrap();
let buffer_slice = output_buffer.slice(..);