pub enum EngineSpan {
Prepass = 0,
Main = 1,
Composite = 2,
Blit = 3,
}Expand description
One of the four GPU spans an engine frame is split into.
The discriminants are the span indices a TimestampRing is driven with,
and the order is the order a frame line reports them in — both are wire
contract, so a variant is appended, never re-ordered.
Variants§
Prepass = 0
Work recorded strictly ahead of the frame’s own passes: the glyph-atlas replay that draws newly cached glyphs into their array layers.
Main = 1
The frame’s own surface passes — the clear, the opaque depth-writing strip pass, every surface round’s alpha strips, and the hole punch.
Composite = 2
Everything drawn into an off-screen page rather than the surface: each isolated layer’s page round and each pass of a filter’s sequence.
Blit = 3
The host’s own present-side conversion — the un-premultiplying pass a straight-alpha swapchain needs, or a blit into it.
Implementations§
Source§impl EngineSpan
impl EngineSpan
Sourcepub const ALL: [EngineSpan; 4]
pub const ALL: [EngineSpan; 4]
Every span, in reporting order.
Sourcepub const COUNT: usize
pub const COUNT: usize
How many spans a frame is split into — what a caller sizes a
TimestampRing with.
Trait Implementations§
Source§impl Clone for EngineSpan
impl Clone for EngineSpan
impl Copy for EngineSpan
Source§impl Debug for EngineSpan
impl Debug for EngineSpan
impl Eq for EngineSpan
Source§impl Hash for EngineSpan
impl Hash for EngineSpan
Source§impl Ord for EngineSpan
impl Ord for EngineSpan
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EngineSpan
impl PartialEq for EngineSpan
Source§impl PartialOrd for EngineSpan
impl PartialOrd for EngineSpan
impl StructuralPartialEq for EngineSpan
Auto Trait Implementations§
impl Freeze for EngineSpan
impl RefUnwindSafe for EngineSpan
impl Send for EngineSpan
impl Sync for EngineSpan
impl Unpin for EngineSpan
impl UnsafeUnpin for EngineSpan
impl UnwindSafe for EngineSpan
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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.