#[repr(u8)]pub enum MobileSurfaceFault {
ContextLost = 0,
SurfaceLost = 1,
ShaderCompileFailed = 2,
SubmitFailed = 3,
}Expand description
Mobile graphics context or presentation fault driving immediate failover without waiting for perf comparisons.
Variants§
ContextLost = 0
EGL context lost (EGL_CONTEXT_LOST) or Metal GPU device reset/hang.
SurfaceLost = 1
Native window surface lost or CAMetalLayer drawable unavailable.
ShaderCompileFailed = 2
GLES 3.0 or MSL uber-shader compilation or pipeline creation failed.
SubmitFailed = 3
Frame swap, command buffer commit, or surface post failed.
Trait Implementations§
Source§impl Clone for MobileSurfaceFault
impl Clone for MobileSurfaceFault
impl Copy for MobileSurfaceFault
Source§impl Debug for MobileSurfaceFault
impl Debug for MobileSurfaceFault
impl Eq for MobileSurfaceFault
Source§impl Hash for MobileSurfaceFault
impl Hash for MobileSurfaceFault
Source§impl Ord for MobileSurfaceFault
impl Ord for MobileSurfaceFault
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MobileSurfaceFault
impl PartialEq for MobileSurfaceFault
Source§impl PartialOrd for MobileSurfaceFault
impl PartialOrd for MobileSurfaceFault
impl StructuralPartialEq for MobileSurfaceFault
Auto Trait Implementations§
impl Forget for MobileSurfaceFault
impl Freeze for MobileSurfaceFault
impl Move for MobileSurfaceFault
impl RefUnwindSafe for MobileSurfaceFault
impl Send for MobileSurfaceFault
impl Sync for MobileSurfaceFault
impl Unpin for MobileSurfaceFault
impl UnsafeUnpin for MobileSurfaceFault
impl UnwindSafe for MobileSurfaceFault
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