pub struct DrawStats {
pub triangles: usize,
pub culled: usize,
pub clipped_away: usize,
pub not_a_number: usize,
pub shaded: usize,
pub discarded: usize,
pub depth_failed: usize,
pub written: usize,
}Expand description
What a draw did.
Fields§
§triangles: usizeTriangles in the index list.
culled: usizeTriangles dropped by culling.
clipped_away: usizeTriangles clipped away entirely.
not_a_number: usizeTriangles with a NaN position after clipping, which draw nothing.
shaded: usizePixels the program ran for (helpers not counted).
discarded: usizePixels the pixel program discarded.
depth_failed: usizePixels that failed the depth test.
written: usizePixels written to the targets.
Trait Implementations§
impl Copy for DrawStats
impl Eq for DrawStats
impl StructuralPartialEq for DrawStats
Auto Trait Implementations§
impl Freeze for DrawStats
impl RefUnwindSafe for DrawStats
impl Send for DrawStats
impl Sync for DrawStats
impl Unpin for DrawStats
impl UnsafeUnpin for DrawStats
impl UnwindSafe for DrawStats
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<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.