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 preflight(self) -> Mesh3dPreflightReport
pub const fn preflight(self) -> Mesh3dPreflightReport
Returns exact clipping/generated-work counts from authoritative preflight.
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. See preflight() for
explicitly clipped and discarded source-triangle counts.
Sourcepub const fn triangle_count(self) -> usize
pub const fn triangle_count(self) -> usize
Returns indexed and generated 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 preflight_duration(self) -> Duration
pub const fn preflight_duration(self) -> Duration
CPU time in authoritative source validation, clipping and draw ordering.
Sourcepub const fn staging_upload_duration(self) -> Duration
pub const fn staging_upload_duration(self) -> Duration
CPU time after preflight spent preparing/growing staging and GPU buffers
and enqueueing writes. Together with preflight this forms upload();
none of these CPU measurements represents GPU execution time.
Sourcepub const fn gpu_timing_id(self) -> Option<GpuTimingId>
pub const fn gpu_timing_id(self) -> Option<GpuTimingId>
Correlation key for optional asynchronous GPU pass timing. None means
disabled/unavailable timing or a full ring, not a zero-duration pass.
Sourcepub const fn uploaded_bytes(self) -> usize
pub const fn uploaded_bytes(self) -> usize
Actual camera, instance, edge-uniform and generated-stream bytes written for this draw. Retained topology/texture updates and diagnostic timestamp resolution/readback are separate operations and are excluded.
Sourcepub const fn upload_calls(self) -> usize
pub const fn upload_calls(self) -> usize
Number of nonempty queue buffer writes corresponding to uploaded_bytes.
Sourcepub const fn buffer_allocation_count(self) -> usize
pub const fn buffer_allocation_count(self) -> usize
Reusable frame GPU buffers newly allocated by this draw. Excludes renderer initialization, immutable scene resources, bind groups and driver internals.
Sourcepub const fn retained_frame_cpu_bytes(self) -> usize
pub const fn retained_frame_cpu_bytes(self) -> usize
Retained CPU instance, edge-uniform and clipped-object array capacity after the draw. Excludes scene sources, dynamic-update scratch and backend memory.
Sourcepub const fn retained_frame_gpu_bytes(self) -> usize
pub const fn retained_frame_gpu_bytes(self) -> usize
Nominal reusable camera/instance/edge/generated GPU buffer bytes after this draw. Render targets, scene resources and timestamp diagnostics are excluded.
Sourcepub const fn staging_capacity_bytes(self) -> usize
pub const fn staging_capacity_bytes(self) -> usize
Live CPU frame-array capacities during encoding: retained frame arrays plus this draw’s temporary clipping/color/lighting/edge/sorting arrays.
Sourcepub const fn peak_frame_cpu_bytes(self) -> usize
pub const fn peak_frame_cpu_bytes(self) -> usize
Maximum simultaneous old/new frame-array capacity during preparation. Excludes caller data, backend allocations and allocator metadata.
Sourcepub const fn peak_frame_gpu_bytes(self) -> usize
pub const fn peak_frame_gpu_bytes(self) -> usize
Old reusable GPU buffers plus newly allocated replacements for this draw; driver retirement/in-flight allocations are not inferred from this count.
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.