pub struct Mesh3dRenderReport { /* private fields */ }Expand description
CPU-side result of one depth-tested offscreen 3D draw.
Implementations§
Source§impl Mesh3dRenderReport
impl Mesh3dRenderReport
Sourcepub const fn object_count(self) -> usize
pub const fn object_count(self) -> usize
Returns independently transformed visible objects submitted for drawing.
Objects wholly outside a common frustum plane remain submitted objects even when rasterization produces no fragments. Partially clipped surface triangles are rejected before this report is produced.
Sourcepub const fn triangle_count(self) -> usize
pub const fn triangle_count(self) -> usize
Returns total indexed triangles submitted across every object.
Sourcepub const fn edge_count(self) -> usize
pub const fn edge_count(self) -> usize
Returns explicit mathematical edges submitted for depth classification.
Sourcepub const fn render_pass_count(self) -> usize
pub const fn render_pass_count(self) -> usize
Returns GPU render passes encoded for the retained scene.
A successful draw always encodes one pass because clearing the color and depth attachments is observable even when the scene is empty.
Sourcepub const fn draw_call_count(self) -> usize
pub const fn draw_call_count(self) -> usize
Returns surface, hidden-edge, and visible-edge draw calls actually encoded for the retained scene.
Sourcepub const fn upload(self) -> Duration
pub const fn upload(self) -> Duration
Returns CPU time spent validating, staging, growing reusable buffers, and enqueuing camera/instance uploads.
Sourcepub const fn encode_submit(self) -> Duration
pub const fn encode_submit(self) -> Duration
Returns CPU time spent encoding and submitting the pass.
Trait Implementations§
Source§impl Clone for Mesh3dRenderReport
impl Clone for Mesh3dRenderReport
Source§fn clone(&self) -> Mesh3dRenderReport
fn clone(&self) -> Mesh3dRenderReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Mesh3dRenderReport
Source§impl Debug for Mesh3dRenderReport
impl Debug for Mesh3dRenderReport
impl Eq for Mesh3dRenderReport
Source§impl PartialEq for Mesh3dRenderReport
impl PartialEq for Mesh3dRenderReport
impl StructuralPartialEq for Mesh3dRenderReport
Auto Trait Implementations§
impl Freeze for Mesh3dRenderReport
impl RefUnwindSafe for Mesh3dRenderReport
impl Send for Mesh3dRenderReport
impl Sync for Mesh3dRenderReport
impl Unpin for Mesh3dRenderReport
impl UnsafeUnpin for Mesh3dRenderReport
impl UnwindSafe for Mesh3dRenderReport
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.