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

@ -128,8 +128,10 @@ impl Cache {
return Err(core::image::Error::OutOfMemory);
};
let _ = device
.poll(wgpu::PollType::WaitForSubmissionIndex(submission));
let _ = device.poll(wgpu::PollType::Wait {
submission_index: Some(submission),
timeout: None,
});
#[allow(unsafe_code)]
let allocation = unsafe {
@ -624,9 +626,10 @@ mod worker {
callback(&shell);
});
let _ = self
.device
.poll(wgpu::PollType::WaitForSubmissionIndex(submission));
let _ = self.device.poll(wgpu::PollType::Wait {
submission_index: Some(submission),
timeout: None,
});
}
}
}