Enum wgpu_types::SurfaceStatus
source · [−]#[repr(C)]
pub enum SurfaceStatus {
Good,
Suboptimal,
Timeout,
Outdated,
Lost,
}
Expand description
Status of the recieved surface image.
Variants
Good
No issues.
Suboptimal
The swap chain is operational, but it does no longer perfectly match the surface. A re-configuration is needed.
Timeout
Unable to get the next frame, timed out.
Outdated
The surface under the swap chain has changed.
Lost
The surface under the swap chain is lost.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SurfaceStatus
impl Send for SurfaceStatus
impl Sync for SurfaceStatus
impl Unpin for SurfaceStatus
impl UnwindSafe for SurfaceStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more