mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
# Objective Fixes #8975 ## Solution Return the value from wgpu::device::poll(). --- ## Changelog In render_device.rs - RenderDevice::Poll()
This commit is contained in:
parent
ab58100fe3
commit
c24520cb72
1 changed files with 8 additions and 2 deletions
|
@ -50,10 +50,16 @@ impl RenderDevice {
|
||||||
|
|
||||||
/// Check for resource cleanups and mapping callbacks.
|
/// Check for resource cleanups and mapping callbacks.
|
||||||
///
|
///
|
||||||
|
/// Return `true` if the queue is empty, or `false` if there are more queue
|
||||||
|
/// submissions still in flight. (Note that, unless access to the [`wgpu::Queue`] is
|
||||||
|
/// coordinated somehow, this information could be out of date by the time
|
||||||
|
/// the caller receives it. `Queue`s can be shared between threads, so
|
||||||
|
/// other threads could submit new work at any time.)
|
||||||
|
///
|
||||||
/// no-op on the web, device is automatically polled.
|
/// no-op on the web, device is automatically polled.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn poll(&self, maintain: wgpu::Maintain) {
|
pub fn poll(&self, maintain: wgpu::Maintain) -> bool {
|
||||||
self.device.poll(maintain);
|
self.device.poll(maintain)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates an empty [`CommandEncoder`](wgpu::CommandEncoder).
|
/// Creates an empty [`CommandEncoder`](wgpu::CommandEncoder).
|
||||||
|
|
Loading…
Reference in a new issue