mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-01-10 12:48:46 -05:00
Properly Deal with Timeouts (#7030)
This commit is contained in:
committed by
GitHub
parent
f90f19c7e8
commit
7e119968ce
@@ -111,7 +111,7 @@ fn main() {
|
||||
}
|
||||
|
||||
global.device_stop_capture(device);
|
||||
global.device_poll(device, wgt::Maintain::wait()).unwrap();
|
||||
global.device_poll(device, wgt::PollType::wait()).unwrap();
|
||||
}
|
||||
#[cfg(feature = "winit")]
|
||||
{
|
||||
@@ -203,7 +203,7 @@ fn main() {
|
||||
},
|
||||
Event::LoopExiting => {
|
||||
log::info!("Closing");
|
||||
global.device_poll(device, wgt::Maintain::wait()).unwrap();
|
||||
global.device_poll(device, wgt::PollType::wait()).unwrap();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ impl Test<'_> {
|
||||
|
||||
println!("\t\t\tWaiting...");
|
||||
global
|
||||
.device_poll(device_id, wgt::Maintain::wait())
|
||||
.device_poll(device_id, wgt::PollType::wait())
|
||||
.unwrap();
|
||||
|
||||
for expect in self.expectations {
|
||||
|
||||
Reference in New Issue
Block a user