pub struct TessellationStats { /* private fields */ }Expand description
Outcome of converting accepted scene commands into GPU vertices.
A dropped command had finite source fields but produced no finite triangle vertices, usually because arithmetic overflowed while expanding geometry. Hosts can surface this separately from presentation success.
Implementations§
Source§impl TessellationStats
impl TessellationStats
Sourcepub fn command_count(self) -> usize
pub fn command_count(self) -> usize
Returns accepted source commands examined by the tessellator.
Sourcepub fn rendered_command_count(self) -> usize
pub fn rendered_command_count(self) -> usize
Returns source commands that emitted finite triangle vertices.
Sourcepub fn dropped_command_count(self) -> usize
pub fn dropped_command_count(self) -> usize
Returns source commands discarded because tessellation emitted no valid geometry.
Sourcepub const fn command_counts(self) -> PrimitiveCommandCounts
pub const fn command_counts(self) -> PrimitiveCommandCounts
Returns accepted commands examined, grouped by primitive category.
Sourcepub const fn rendered_counts(self) -> PrimitiveCommandCounts
pub const fn rendered_counts(self) -> PrimitiveCommandCounts
Returns commands that emitted geometry, grouped by primitive category.
Sourcepub const fn dropped_counts(self) -> PrimitiveCommandCounts
pub const fn dropped_counts(self) -> PrimitiveCommandCounts
Returns commands that emitted no geometry, grouped by primitive category.
Sourcepub fn vertex_count(self) -> usize
pub fn vertex_count(self) -> usize
Returns finite triangle-list vertices generated for this scene.
Sourcepub fn draw_batch_count(self) -> usize
pub fn draw_batch_count(self) -> usize
Returns draw batches generated after compatible adjacent commands merge.
Sourcepub fn upload_bytes(self) -> usize
pub fn upload_bytes(self) -> usize
Returns bytes required to upload the generated vertices.
Trait Implementations§
Source§impl Clone for TessellationStats
impl Clone for TessellationStats
impl Copy for TessellationStats
Source§impl Debug for TessellationStats
impl Debug for TessellationStats
Source§impl Default for TessellationStats
impl Default for TessellationStats
impl Eq for TessellationStats
Source§impl PartialEq for TessellationStats
impl PartialEq for TessellationStats
impl StructuralPartialEq for TessellationStats
Auto Trait Implementations§
impl Freeze for TessellationStats
impl RefUnwindSafe for TessellationStats
impl Send for TessellationStats
impl Sync for TessellationStats
impl Unpin for TessellationStats
impl UnsafeUnpin for TessellationStats
impl UnwindSafe for TessellationStats
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
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
key and return true if they are equal.