Skip to main content

ResourceChurnStats

Struct ResourceChurnStats 

Source
pub struct ResourceChurnStats {
Show 42 fields pub mesh_texture_allocations: u64, pub mesh_texture_bytes: u64, pub mesh_coefficient_upload_bytes: u64, pub mesh_raster_passes: u64, pub mesh_cache_hits: u64, pub mesh_topology_allocations: u64, pub flushes: u64, pub opacity_group_renders: u64, pub opacity_group_cache_hits: u64, pub alpha_source_renders: u64, pub alpha_source_cache_hits: u64, pub retained_scene_resets: u64, pub vector_batch_flushes: u64, pub vector_buffer_rebuilds: u64, pub vector_geometry_rebuilds: u64, pub vector_geometry_cache_hits: u64, pub vector_geometry_cache_misses: u64, pub vector_geometry_cache_evictions: u64, pub vector_geometry_cache_bytes: u64, pub tessellated_vertices: u64, pub tessellated_indices: u64, pub cached_vertices_reused: u64, pub cached_indices_reused: u64, pub vector_resource_creates: u64, pub vector_resource_updates: u64, pub vector_resource_recreates: u64, pub vector_resource_create_bytes: u64, pub vector_resource_update_bytes: u64, pub vector_resource_cache_hits: u64, pub vector_resource_cache_misses: u64, pub vector_resource_cache_evictions: u64, pub vector_resource_cache_bytes: u64, pub texture_creates: u64, pub image_draw_creates: u64, pub texture_upload_bytes: u64, pub texture_cache_hits: u64, pub retained_nodes_considered: u64, pub retained_nodes_visible: u64, pub retained_draw_batches: u64, pub retained_draws: u64, pub retained_vector_draws: u64, pub retained_image_draws: u64,
}
Expand description

Resource churn counters for renderer profiling. Effect counters are available with the opt-in shaders Cargo feature.

Fields§

§mesh_texture_allocations: u64§mesh_texture_bytes: u64

Bytes allocated for mesh textures during this sample (not current residency).

§mesh_coefficient_upload_bytes: u64§mesh_raster_passes: u64§mesh_cache_hits: u64§mesh_topology_allocations: u64§flushes: u64§opacity_group_renders: u64§opacity_group_cache_hits: u64§alpha_source_renders: u64§alpha_source_cache_hits: u64§retained_scene_resets: u64§vector_batch_flushes: u64§vector_buffer_rebuilds: u64§vector_geometry_rebuilds: u64§vector_geometry_cache_hits: u64§vector_geometry_cache_misses: u64§vector_geometry_cache_evictions: u64§vector_geometry_cache_bytes: u64§tessellated_vertices: u64§tessellated_indices: u64§cached_vertices_reused: u64§cached_indices_reused: u64§vector_resource_creates: u64§vector_resource_updates: u64§vector_resource_recreates: u64§vector_resource_create_bytes: u64§vector_resource_update_bytes: u64§vector_resource_cache_hits: u64§vector_resource_cache_misses: u64§vector_resource_cache_evictions: u64§vector_resource_cache_bytes: u64§texture_creates: u64§image_draw_creates: u64§texture_upload_bytes: u64§texture_cache_hits: u64

Tile-local bindings created using an already resident sibling image texture.

§retained_nodes_considered: u64§retained_nodes_visible: u64§retained_draw_batches: u64§retained_draws: u64§retained_vector_draws: u64§retained_image_draws: u64

Implementations§

Source§

impl ResourceChurnStats

Source

pub fn merge(&mut self, other: Self)

Source

pub fn has_resource_churn(&self) -> bool

Trait Implementations§

Source§

impl Clone for ResourceChurnStats

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 ResourceChurnStats

Source§

impl Debug for ResourceChurnStats

Source§

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

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

impl Default for ResourceChurnStats

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ResourceChurnStats

Source§

impl PartialEq for ResourceChurnStats

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 ResourceChurnStats

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

Compare self to key and return true if they are equal.
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

Checks if this value is equivalent to the given key. Read more
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> RoundFrom<T> for T

Source§

fn round_from(x: T) -> T

Performs the conversion.
Source§

impl<T, U> RoundInto<U> for T
where U: RoundFrom<T>,

Source§

fn round_into(self) -> U

Performs the conversion.
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<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

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

Source§

impl<T> WasmNotSendSync for T

Source§

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