pub enum EncodeOutcome {
Encoded,
Skipped,
}Expand description
The outcome of a single encode call — the first phase of the two-phase render seam (encode + present).
A shell that times encode and present separately branches on this to decide
whether presenting is worthwhile: an EncodeOutcome::Skipped frame laid
no pixels into the intermediate target (no renderable surface), so there is
nothing to present.
Variants§
Encoded
The scene was encoded into the intermediate target; the FrameOutcome
now comes from the matching present call.
Skipped
No renderable surface (NoSurface/SurfaceLost): nothing was encoded
and nothing was queued.
Trait Implementations§
Source§impl Clone for EncodeOutcome
impl Clone for EncodeOutcome
Source§fn clone(&self) -> EncodeOutcome
fn clone(&self) -> EncodeOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncodeOutcome
Source§impl Debug for EncodeOutcome
impl Debug for EncodeOutcome
impl Eq for EncodeOutcome
Source§impl PartialEq for EncodeOutcome
impl PartialEq for EncodeOutcome
impl StructuralPartialEq for EncodeOutcome
Auto Trait Implementations§
impl Freeze for EncodeOutcome
impl RefUnwindSafe for EncodeOutcome
impl Send for EncodeOutcome
impl Sync for EncodeOutcome
impl Unpin for EncodeOutcome
impl UnsafeUnpin for EncodeOutcome
impl UnwindSafe for EncodeOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.