pub struct Mesh3dPreflightReport { /* private fields */ }Expand description
Non-mutating preflight counts for the exact scene, camera, target and budget.
Implementations§
Source§impl Mesh3dPreflightReport
impl Mesh3dPreflightReport
Sourcepub const fn surface_policy(self) -> SurfaceRasterization3d
pub const fn surface_policy(self) -> SurfaceRasterization3d
Returns the surface policy used by this authoritative preflight.
Sourcepub const fn sorting_capacity_bytes(self) -> usize
pub const fn sorting_capacity_bytes(self) -> usize
Actual active draw-order capacity, zero for opaque/masked-only frames. A reused renderer may retain a larger compliant allocation than a fresh immutable preflight. Idle storage is included in retained frame CPU bytes.
Sourcepub const fn submitted_triangle_count(self) -> usize
pub const fn submitted_triangle_count(self) -> usize
Returns exact retained plus generated surface triangles submitted to the GPU. This is not a visible-fragment count: wholly outside retained index ranges still count when they are submitted for hardware clipping.
Sourcepub const fn culled_object_count(self) -> usize
pub const fn culled_object_count(self) -> usize
Native surface-only objects omitted by optional conservative frustum culling after successful unculled validation. Not host-hidden objects, generated clipping, or a measurement of fragments produced by the GPU.
Sourcepub const fn culled_triangle_count(self) -> usize
pub const fn culled_triangle_count(self) -> usize
Retained triangles omitted with wholly offscreen surface-only objects. These still count against the unculled surface admission budget.
Sourcepub const fn generated_object_count(self) -> usize
pub const fn generated_object_count(self) -> usize
Returns objects whose retained surfaces are replaced with generated clip-space geometry for this draw, including empty generated ranges. Optional Native culling is counted separately, not as CPU generation.
Sourcepub const fn generated_vertex_count(self) -> usize
pub const fn generated_vertex_count(self) -> usize
Returns uploaded clip-space vertices, including unchanged triangles in objects that also contain crossing triangles.
Sourcepub const fn generated_triangle_count(self) -> usize
pub const fn generated_triangle_count(self) -> usize
Returns generated triangle-list primitives submitted to the GPU.
Sourcepub const fn generated_upload_bytes(self) -> usize
pub const fn generated_upload_bytes(self) -> usize
Returns exact additional surface, optional color/lighting and display-edge upload bytes.
Sourcepub const fn generated_edge_count(self) -> usize
pub const fn generated_edge_count(self) -> usize
Returns canonical clip-space display edges uploaded for crossing objects. Their two endpoints share the surface’s CPU-defined transform so legal shader dot associations cannot shift edges away from their own faces.
Sourcepub const fn clipped_source_triangle_count(self) -> Option<usize>
pub const fn clipped_source_triangle_count(self) -> Option<usize>
Returns original triangles that intersect the frustum boundary and
produce a nonempty clipped polygon under strict CPU classification.
Native rasterization returns None: hardware clipping is not observed.
Sourcepub const fn discarded_source_triangle_count(self) -> Option<usize>
pub const fn discarded_source_triangle_count(self) -> Option<usize>
Returns original triangles proven entirely outside the frustum by CPU
classification. Native rasterization returns None, not a visibility count.
Trait Implementations§
Source§impl Clone for Mesh3dPreflightReport
impl Clone for Mesh3dPreflightReport
impl Copy for Mesh3dPreflightReport
Source§impl Debug for Mesh3dPreflightReport
impl Debug for Mesh3dPreflightReport
Source§impl Default for Mesh3dPreflightReport
impl Default for Mesh3dPreflightReport
impl Eq for Mesh3dPreflightReport
Source§impl PartialEq for Mesh3dPreflightReport
impl PartialEq for Mesh3dPreflightReport
impl StructuralPartialEq for Mesh3dPreflightReport
Auto Trait Implementations§
impl Freeze for Mesh3dPreflightReport
impl RefUnwindSafe for Mesh3dPreflightReport
impl Send for Mesh3dPreflightReport
impl Sync for Mesh3dPreflightReport
impl Unpin for Mesh3dPreflightReport
impl UnsafeUnpin for Mesh3dPreflightReport
impl UnwindSafe for Mesh3dPreflightReport
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.