pub enum Maintain<T> {
WaitForSubmissionIndex(T),
Wait,
Poll,
}
Expand description
Passed to Device::poll
to control how and if it should block.
Variants§
WaitForSubmissionIndex(T)
On wgpu-core based backends, block until the given submission has completed execution, and any callbacks have been invoked.
On WebGPU, this has no effect. Callbacks are invoked from the window event loop.
Wait
Same as WaitForSubmissionIndex but waits for the most recent submission.
Poll
Check the device for a single time without blocking.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Maintain<T>where
T: Freeze,
impl<T> RefUnwindSafe for Maintain<T>where
T: RefUnwindSafe,
impl<T> Send for Maintain<T>where
T: Send,
impl<T> Sync for Maintain<T>where
T: Sync,
impl<T> Unpin for Maintain<T>where
T: Unpin,
impl<T> UnwindSafe for Maintain<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more