mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
refactor: rename Global::poll_device
to poll_all_devices_of_api
This commit is contained in:
parent
c5ee3b6880
commit
9499e8c9df
@ -2127,7 +2127,7 @@ impl Global {
|
||||
///
|
||||
/// Return `all_queue_empty` indicating whether there are more queue
|
||||
/// submissions still in flight.
|
||||
fn poll_device<A: HalApi>(
|
||||
fn poll_all_devices_of_api<A: HalApi>(
|
||||
&self,
|
||||
force_wait: bool,
|
||||
closures: &mut UserClosures,
|
||||
@ -2174,23 +2174,23 @@ impl Global {
|
||||
|
||||
#[cfg(vulkan)]
|
||||
{
|
||||
all_queue_empty =
|
||||
self.poll_device::<hal::api::Vulkan>(force_wait, &mut closures)? && all_queue_empty;
|
||||
all_queue_empty &=
|
||||
self.poll_all_devices_of_api::<hal::api::Vulkan>(force_wait, &mut closures)?;
|
||||
}
|
||||
#[cfg(metal)]
|
||||
{
|
||||
all_queue_empty =
|
||||
self.poll_device::<hal::api::Metal>(force_wait, &mut closures)? && all_queue_empty;
|
||||
all_queue_empty &=
|
||||
self.poll_all_devices_of_api::<hal::api::Metal>(force_wait, &mut closures)?;
|
||||
}
|
||||
#[cfg(dx12)]
|
||||
{
|
||||
all_queue_empty =
|
||||
self.poll_device::<hal::api::Dx12>(force_wait, &mut closures)? && all_queue_empty;
|
||||
all_queue_empty &=
|
||||
self.poll_all_devices_of_api::<hal::api::Dx12>(force_wait, &mut closures)?;
|
||||
}
|
||||
#[cfg(gles)]
|
||||
{
|
||||
all_queue_empty =
|
||||
self.poll_device::<hal::api::Gles>(force_wait, &mut closures)? && all_queue_empty;
|
||||
all_queue_empty &=
|
||||
self.poll_all_devices_of_api::<hal::api::Gles>(force_wait, &mut closures)?;
|
||||
}
|
||||
|
||||
closures.fire();
|
||||
|
Loading…
Reference in New Issue
Block a user