pub struct GpuPasses {
pub prepass: Duration,
pub main: Duration,
pub composite: Duration,
pub blit: Duration,
}Expand description
One frame’s real GPU time, split by the spans the frust-owned render engine
names — the counterpart of the CPU spans in FramePasses, measured on the
GPU’s own clock rather than inferred from CPU wall time around a submit.
Produced only in a build whose device asked for GPU timestamps; every
other frame carries None and reports gpu_q=0.
A span may legitimately read zero — a frame with no off-screen layer does no
composite work — so a zero is a measurement, not a gap.
Fields§
§prepass: DurationWork recorded ahead of the frame’s own passes (the glyph-atlas replay).
main: DurationThe frame’s own surface passes: clear, opaque strips, alpha strips, and the hole punch.
composite: DurationOff-screen layer pages and filter passes.
blit: DurationThe present-side conversion or blit into the swapchain.
Implementations§
Trait Implementations§
impl Copy for GpuPasses
impl Eq for GpuPasses
impl StructuralPartialEq for GpuPasses
Auto Trait Implementations§
impl Freeze for GpuPasses
impl RefUnwindSafe for GpuPasses
impl Send for GpuPasses
impl Sync for GpuPasses
impl Unpin for GpuPasses
impl UnsafeUnpin for GpuPasses
impl UnwindSafe for GpuPasses
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<T> Brush for T
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.