Skip to main content

RenderStatsSnapshot

Struct RenderStatsSnapshot 

Source
pub struct RenderStatsSnapshot {
Show 46 fields pub submits: u32, pub encoder_count: u32, pub submit_count: u32, pub pass_count: u32, pub offscreen_acquires: u32, pub offscreen_news: u32, pub offscreen_total_bytes: u64, pub transient_texture_bytes: u64, pub retained_texture_bytes: u64, pub upload_bytes: u64, pub isolated_layer_renders: u32, pub isolated_layer_pixels: u64, pub layer_cache_hits: u32, pub layer_cache_misses: u32, pub layer_cache_evictions: u32, pub layer_cache_hit_pixels: u64, pub layer_cache_miss_pixels: u64, pub shadow_shape_cache_hits: u32, pub shadow_shape_cache_misses: u32, pub shadow_shape_cache_hit_pixels: u64, pub shadow_shape_cache_miss_pixels: u64, pub shadow_text_blur_fallbacks: u32, pub blur_passes: u32, pub composite_passes: u32, pub effect_applies: u32, pub shape_passes: u32, pub image_passes: u32, pub text_passes: u32, pub draw_calls: u32, pub text_image_cache_hits: u32, pub text_image_cache_misses: u32, pub text_image_cache_hit_pixels: u64, pub text_image_cache_miss_pixels: u64, pub text_image_raster_bytes: u64, pub text_glyph_atlas_hits: u32, pub text_glyph_atlas_misses: u32, pub text_glyph_atlas_miss_pixels: u64, pub offscreen_pool_size: u32, pub offscreen_pool_bytes: u64, pub text_pool_size: u32, pub layer_cache_size: u32, pub layer_cache_bytes: u64, pub image_cache_size: u32, pub text_cache_size: u32, pub top_isolated_layers: [Option<IsolatedLayerStat>; 8], pub top_isolated_layer_count: usize,
}

Fields§

§submits: u32§encoder_count: u32§submit_count: u32§pass_count: u32§offscreen_acquires: u32§offscreen_news: u32§offscreen_total_bytes: u64§transient_texture_bytes: u64§retained_texture_bytes: u64§upload_bytes: u64§isolated_layer_renders: u32§isolated_layer_pixels: u64§layer_cache_hits: u32§layer_cache_misses: u32§layer_cache_evictions: u32§layer_cache_hit_pixels: u64§layer_cache_miss_pixels: u64§shadow_shape_cache_hits: u32§shadow_shape_cache_misses: u32§shadow_shape_cache_hit_pixels: u64§shadow_shape_cache_miss_pixels: u64§shadow_text_blur_fallbacks: u32§blur_passes: u32§composite_passes: u32§effect_applies: u32§shape_passes: u32§image_passes: u32§text_passes: u32§draw_calls: u32

Shape, image and glyph draw_indexed calls recorded this frame. The *_passes counters above count batches, so a single image batch reports image_passes=1 however many images it draws; this counts what the driver actually sees. Composite and effect quads are not included — they are one draw each and already counted by composite_passes, blur_passes and effect_applies.

§text_image_cache_hits: u32§text_image_cache_misses: u32§text_image_cache_hit_pixels: u64§text_image_cache_miss_pixels: u64§text_image_raster_bytes: u64§text_glyph_atlas_hits: u32§text_glyph_atlas_misses: u32§text_glyph_atlas_miss_pixels: u64§offscreen_pool_size: u32§offscreen_pool_bytes: u64§text_pool_size: u32§layer_cache_size: u32§layer_cache_bytes: u64§image_cache_size: u32§text_cache_size: u32§top_isolated_layers: [Option<IsolatedLayerStat>; 8]§top_isolated_layer_count: usize

Implementations§

Source§

impl FrameStatsSnapshot

Source

pub fn top_isolated_layers(self) -> impl Iterator<Item = IsolatedLayerStat>

Trait Implementations§

Source§

impl Clone for FrameStatsSnapshot

Source§

fn clone(&self) -> FrameStatsSnapshot

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 FrameStatsSnapshot

Source§

impl Debug for FrameStatsSnapshot

Source§

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

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

impl Default for FrameStatsSnapshot

Source§

fn default() -> FrameStatsSnapshot

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

impl PartialEq for FrameStatsSnapshot

Source§

fn eq(&self, other: &FrameStatsSnapshot) -> 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 FrameStatsSnapshot

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<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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

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