Update wgpu to 27

This commit is contained in:
Héctor Ramón Jiménez 2025-10-31 14:11:20 +01:00
parent 54239c55ae
commit ca23e6f793
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 554 additions and 625 deletions

View file

@ -278,10 +278,10 @@ impl Renderer {
let slice = output_buffer.slice(..);
slice.map_async(wgpu::MapMode::Read, |_| {});
let _ = self
.engine
.device
.poll(wgpu::PollType::WaitForSubmissionIndex(index));
let _ = self.engine.device.poll(wgpu::PollType::Wait {
submission_index: Some(index),
timeout: None,
});
let mapped_buffer = slice.get_mapped_range();
@ -927,6 +927,7 @@ impl renderer::Headless for Renderer {
},
memory_hints: wgpu::MemoryHints::MemoryUsage,
trace: wgpu::Trace::Off,
experimental_features: wgpu::ExperimentalFeatures::disabled(),
})
.await
.ok()?;