pub struct LastEndFrameStats {
pub prepare_us: u32,
pub execute_us: u32,
pub submit_us: u32,
pub command_count: u32,
}Expand description
Wall-clock breakdown of the most recent WgpuGfxCtx::end_frame call.
prepare_us is the per-command CPU walk that allocates wgpu buffers and
bind groups (often the dominant cost for command-heavy scenes).
execute_us is the render-pass walk that issues draw calls into the
command encoder. submit_us is the queue.submit cost — usually tiny on
native, occasionally large on WebGPU or when the driver is back-pressured.
Fields§
§prepare_us: u32§execute_us: u32§submit_us: u32§command_count: u32Trait Implementations§
Source§impl Clone for LastEndFrameStats
impl Clone for LastEndFrameStats
Source§fn clone(&self) -> LastEndFrameStats
fn clone(&self) -> LastEndFrameStats
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 LastEndFrameStats
Source§impl Debug for LastEndFrameStats
impl Debug for LastEndFrameStats
Source§impl Default for LastEndFrameStats
impl Default for LastEndFrameStats
Source§fn default() -> LastEndFrameStats
fn default() -> LastEndFrameStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LastEndFrameStats
impl RefUnwindSafe for LastEndFrameStats
impl Send for LastEndFrameStats
impl Sync for LastEndFrameStats
impl Unpin for LastEndFrameStats
impl UnsafeUnpin for LastEndFrameStats
impl UnwindSafe for LastEndFrameStats
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().