pub struct FrameStats {
pub items: u32,
pub chunks: u32,
pub chunks_drawn: u32,
pub chunks_rebuilt: u32,
pub items_tessellated: u32,
pub draw_calls: u32,
pub line_segments: u32,
pub triangles: u32,
pub glyphs: u32,
pub gpu_bytes: u64,
}Expand description
Statistics of the last frame.
Fields§
§items: u32Scene items.
chunks: u32Chunks in the scene.
chunks_drawn: u32Chunks drawn (after culling).
chunks_rebuilt: u32Chunks whose geometry was rebuilt this frame.
items_tessellated: u32Items tessellated this frame.
draw_calls: u32Draw calls.
line_segments: u32Line segments drawn.
triangles: u32Fill triangles drawn.
glyphs: u32Glyph quads drawn.
gpu_bytes: u64Bytes allocated in GPU buffers for chunks.
Trait Implementations§
Source§impl Clone for FrameStats
impl Clone for FrameStats
Source§fn clone(&self) -> FrameStats
fn clone(&self) -> FrameStats
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 FrameStats
Source§impl Debug for FrameStats
impl Debug for FrameStats
Source§impl Default for FrameStats
impl Default for FrameStats
Source§fn default() -> FrameStats
fn default() -> FrameStats
Returns the “default value” for a type. Read more
impl Eq for FrameStats
Source§impl PartialEq for FrameStats
impl PartialEq for FrameStats
Source§fn eq(&self, other: &FrameStats) -> bool
fn eq(&self, other: &FrameStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FrameStats
impl Serialize for FrameStats
impl StructuralPartialEq for FrameStats
Auto Trait Implementations§
impl Freeze for FrameStats
impl RefUnwindSafe for FrameStats
impl Send for FrameStats
impl Sync for FrameStats
impl Unpin for FrameStats
impl UnsafeUnpin for FrameStats
impl UnwindSafe for FrameStats
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.