Enum wgpu_types::Maintain
source · 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 native backends, block until the given submission has completed execution, and any callbacks have been invoked.
On the web, 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> 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