diff --git a/wgpu-core/src/device/global.rs b/wgpu-core/src/device/global.rs index 3e6a14fac..8a997e40f 100644 --- a/wgpu-core/src/device/global.rs +++ b/wgpu-core/src/device/global.rs @@ -2127,7 +2127,7 @@ impl Global { /// /// Return `all_queue_empty` indicating whether there are more queue /// submissions still in flight. - fn poll_device( + fn poll_all_devices_of_api( &self, force_wait: bool, closures: &mut UserClosures, @@ -2174,23 +2174,23 @@ impl Global { #[cfg(vulkan)] { - all_queue_empty = - self.poll_device::(force_wait, &mut closures)? && all_queue_empty; + all_queue_empty &= + self.poll_all_devices_of_api::(force_wait, &mut closures)?; } #[cfg(metal)] { - all_queue_empty = - self.poll_device::(force_wait, &mut closures)? && all_queue_empty; + all_queue_empty &= + self.poll_all_devices_of_api::(force_wait, &mut closures)?; } #[cfg(dx12)] { - all_queue_empty = - self.poll_device::(force_wait, &mut closures)? && all_queue_empty; + all_queue_empty &= + self.poll_all_devices_of_api::(force_wait, &mut closures)?; } #[cfg(gles)] { - all_queue_empty = - self.poll_device::(force_wait, &mut closures)? && all_queue_empty; + all_queue_empty &= + self.poll_all_devices_of_api::(force_wait, &mut closures)?; } closures.fire();