pub enum SurfacePresentOutcome {
Submitted,
SkippedUnchanged,
Failed,
}Expand description
Truthful per-frame surface presentation outcome separating successful submissions, unchanged skips, and hard failures.
Variants§
Submitted
New frame was successfully submitted to the active surface/swapchain.
SkippedUnchanged
Frame was losslessly skipped because no visible scene or surface state changed.
Failed
Submission or presentation failed (must be counted and never silently treated as success).
Implementations§
Source§impl SurfacePresentOutcome
Conversion and query helpers for SurfacePresentOutcome.
impl SurfacePresentOutcome
Conversion and query helpers for SurfacePresentOutcome.
Sourcepub const fn from_present_outcome(outcome: PresentOutcome) -> Self
pub const fn from_present_outcome(outcome: PresentOutcome) -> Self
Sourcepub const fn from_submit_outcome(outcome: FrameSubmitOutcome) -> Self
pub const fn from_submit_outcome(outcome: FrameSubmitOutcome) -> Self
Sourcepub const fn to_present_outcome(&self) -> PresentOutcome
pub const fn to_present_outcome(&self) -> PresentOutcome
Trait Implementations§
Source§impl Clone for SurfacePresentOutcome
impl Clone for SurfacePresentOutcome
impl Copy for SurfacePresentOutcome
Source§impl Debug for SurfacePresentOutcome
impl Debug for SurfacePresentOutcome
Source§impl Default for SurfacePresentOutcome
impl Default for SurfacePresentOutcome
Source§impl<'de> Deserialize<'de> for SurfacePresentOutcome
impl<'de> Deserialize<'de> for SurfacePresentOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SurfacePresentOutcome
Source§impl From<FrameSubmitOutcome> for SurfacePresentOutcome
Lossless conversion from FrameSubmitOutcome into SurfacePresentOutcome.
impl From<FrameSubmitOutcome> for SurfacePresentOutcome
Lossless conversion from FrameSubmitOutcome into SurfacePresentOutcome.
Source§impl From<PresentOutcome> for SurfacePresentOutcome
Lossless conversion from PresentOutcome into SurfacePresentOutcome.
impl From<PresentOutcome> for SurfacePresentOutcome
Lossless conversion from PresentOutcome into SurfacePresentOutcome.
Source§impl Hash for SurfacePresentOutcome
impl Hash for SurfacePresentOutcome
Source§impl Ord for SurfacePresentOutcome
impl Ord for SurfacePresentOutcome
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 SurfacePresentOutcome
impl PartialEq for SurfacePresentOutcome
Source§impl PartialOrd for SurfacePresentOutcome
impl PartialOrd for SurfacePresentOutcome
Source§impl Serialize for SurfacePresentOutcome
impl Serialize for SurfacePresentOutcome
impl StructuralPartialEq for SurfacePresentOutcome
Auto Trait Implementations§
impl Forget for SurfacePresentOutcome
impl Freeze for SurfacePresentOutcome
impl Move for SurfacePresentOutcome
impl RefUnwindSafe for SurfacePresentOutcome
impl Send for SurfacePresentOutcome
impl Sync for SurfacePresentOutcome
impl Unpin for SurfacePresentOutcome
impl UnsafeUnpin for SurfacePresentOutcome
impl UnwindSafe for SurfacePresentOutcome
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