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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)