pub struct ParticleStats {
pub active_particles: u32,
pub particles_spawned_this_frame: u32,
pub particles_killed_this_frame: u32,
pub active_emitters: u32,
pub culled_emitters: u32,
pub draw_calls: u32,
pub vertices_rendered: u32,
pub simulation_time_ms: f32,
pub render_time_ms: f32,
pub peak_particles: u32,
pub frame_count: u64,
}Fields§
§active_particles: u32§particles_spawned_this_frame: u32§particles_killed_this_frame: u32§active_emitters: u32§culled_emitters: u32§draw_calls: u32§vertices_rendered: u32§simulation_time_ms: f32§render_time_ms: f32§peak_particles: u32§frame_count: u64Implementations§
Source§impl ParticleStats
impl ParticleStats
pub fn new() -> Self
pub fn begin_frame(&mut self)
pub fn record_spawn(&mut self, n: u32)
pub fn record_kill(&mut self, n: u32)
pub fn record_draw_call(&mut self, verts: u32)
pub fn cpu_ms_total(&self) -> f32
Trait Implementations§
Source§impl Clone for ParticleStats
impl Clone for ParticleStats
Source§impl Debug for ParticleStats
impl Debug for ParticleStats
Auto Trait Implementations§
impl Freeze for ParticleStats
impl RefUnwindSafe for ParticleStats
impl Send for ParticleStats
impl Sync for ParticleStats
impl Unpin for ParticleStats
impl UnsafeUnpin for ParticleStats
impl UnwindSafe for ParticleStats
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> 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.