Skip to main content

Mesh3dRenderReport

Struct Mesh3dRenderReport 

Source
pub struct Mesh3dRenderReport { /* private fields */ }
Expand description

CPU-side result of one depth-tested offscreen 3D draw.

Implementations§

Source§

impl Mesh3dRenderReport

Source

pub const fn preflight(self) -> Mesh3dPreflightReport

Returns exact clipping/generated-work counts from authoritative preflight.

Source

pub const fn object_count(self) -> usize

Returns independently transformed visible objects submitted for drawing.

Outside objects count unless optional Native surface culling proves and omits them. See preflight() for separate culled-object and CPU clipping counts. This is not a visible-fragment or host-visibility count.

Source

pub const fn triangle_count(self) -> usize

Returns indexed and generated triangles submitted across every object.

Source

pub const fn edge_count(self) -> usize

Returns explicit mathematical edges submitted for depth classification.

Source

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.

Source

pub const fn draw_call_count(self) -> usize

Returns surface, hidden-edge, and visible-edge draw calls actually encoded for the retained scene.

Source

pub const fn upload(self) -> Duration

Returns CPU time spent validating, staging, growing reusable buffers, and enqueuing camera/instance uploads.

Source

pub const fn preflight_duration(self) -> Duration

CPU time in authoritative source validation, clipping and draw ordering.

Source

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.

Source

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.

Source

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. Exact unchanged camera/instance/edge bytes are not rewritten. A zero count still performs full preflight, target clearing and submission.

Source

pub const fn upload_calls(self) -> usize

Number of nonempty queue buffer writes corresponding to uploaded_bytes.

Source

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.

Source

pub const fn retained_frame_cpu_bytes(self) -> usize

Retained CPU instance, edge-uniform, object, generated-stream and sorting array capacity after the draw, including idle high-water storage. Excludes scene sources, dynamic-update scratch and backend memory.

Source

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.

Source

pub const fn staging_capacity_bytes(self) -> usize

Live CPU frame-array capacities during encoding. All arrays are reusable, so this equals retained_frame_cpu_bytes after a successful draw. Fixed-size numerical proof stack storage is not included.

Source

pub const fn peak_frame_cpu_bytes(self) -> usize

Conservative upper bound on old/new frame-array capacity during preparation. Reused arrays count once; capacity changes count both old and new storage, even if the allocator could grow in place. This is not measured process RSS. Excludes caller data, fixed-size numerical proof stack storage, backend allocations and allocator metadata.

Source

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.

Source

pub const fn encode_submit(self) -> Duration

Returns CPU time spent encoding and submitting the pass.

Trait Implementations§

Source§

impl Clone for Mesh3dRenderReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Mesh3dRenderReport

Source§

impl Debug for Mesh3dRenderReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Mesh3dRenderReport

Source§

impl PartialEq for Mesh3dRenderReport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Mesh3dRenderReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,