pub struct DeferredFrameStats {Show 17 fields
pub total_time_us: u64,
pub depth_prepass_us: u64,
pub geometry_pass_us: u64,
pub lighting_pass_us: u64,
pub forward_pass_us: u64,
pub postprocess_pass_us: u64,
pub aa_pass_us: u64,
pub total_draw_calls: u32,
pub opaque_draw_calls: u32,
pub transparent_draw_calls: u32,
pub total_triangles: u64,
pub items_submitted: u32,
pub items_visible: u32,
pub items_culled: u32,
pub gbuffer_memory_mb: f32,
pub exposure: f32,
pub frame_number: u64,
}Expand description
Frame statistics for the entire deferred pipeline.
Fields§
§total_time_us: u64Total frame time (microseconds).
depth_prepass_us: u64Time per pass.
geometry_pass_us: u64§lighting_pass_us: u64§forward_pass_us: u64§postprocess_pass_us: u64§aa_pass_us: u64§total_draw_calls: u32Draw call counts.
opaque_draw_calls: u32§transparent_draw_calls: u32§total_triangles: u64Triangle count.
items_submitted: u32Items submitted / visible / culled.
items_visible: u32§items_culled: u32§gbuffer_memory_mb: f32G-Buffer memory usage.
exposure: f32Current exposure.
frame_number: u64Current frame number.
Trait Implementations§
Source§impl Clone for DeferredFrameStats
impl Clone for DeferredFrameStats
Source§fn clone(&self) -> DeferredFrameStats
fn clone(&self) -> DeferredFrameStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeferredFrameStats
impl Debug for DeferredFrameStats
Source§impl Default for DeferredFrameStats
impl Default for DeferredFrameStats
Source§fn default() -> DeferredFrameStats
fn default() -> DeferredFrameStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeferredFrameStats
impl RefUnwindSafe for DeferredFrameStats
impl Send for DeferredFrameStats
impl Sync for DeferredFrameStats
impl Unpin for DeferredFrameStats
impl UnsafeUnpin for DeferredFrameStats
impl UnwindSafe for DeferredFrameStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.