pub struct RenderStats {Show 27 fields
pub ops: u32,
pub draws: u32,
pub clips: u32,
pub culled: u32,
pub layers_rendered: u32,
pub layers_elided: u32,
pub snapshots: u32,
pub backdrops: u32,
pub shared_backdrops: u32,
pub filter_passes: u32,
pub text_tiers: [u32; 3],
pub glyph_rasters: u32,
pub raster_quads: u32,
pub raster_fills: u32,
pub atlas_gcs: u32,
pub held_rasters: u32,
pub opaque_reordered: u32,
pub gpu_ms: f32,
pub blocks_created: u32,
pub cpu_ms: f32,
pub draw_calls: u32,
pub render_passes: u32,
pub pipeline_switches: u32,
pub vertex_bytes: u64,
pub uniform_bytes: u64,
pub plan_ms: f32,
pub encode_ms: f32,
}Expand description
RenderStats reports the work performed by one render operation.
Fields§
§ops: u32ops is the number of replayed operations, including nested lists.
draws: u32draws is the number of logical draws remaining after culling.
clips: u32clips is the number of encoded clip operations.
culled: u32culled is the number of draws skipped because their bounds miss the target.
layers_rendered: u32layers_rendered is the number of offscreen layers actually rendered.
layers_elided: u32layers_elided is the number of save layers applied without an offscreen target.
snapshots: u32snapshots is the number of target-region copies used by destination reads.
backdrops: u32backdrops is the number of backdrop regions that ran a blur chain.
shared_backdrops is the number of backdrop regions that reused a shared blur.
filter_passes: u32filter_passes is the number of encoded image-filter passes.
text_tiers: [u32; 3]text_tiers contains glyph-run counts for [bitmap mask, SDF, outline].
glyph_rasters: u32glyph_rasters is the number of glyphs rasterized after cache misses.
raster_quads: u32raster_quads is the number of cached display lists drawn as image quads.
raster_fills: u32raster_fills is the number of display lists rendered into cache textures.
atlas_gcs: u32atlas_gcs is the number of full glyph-atlas collections.
held_rasters: u32held_rasters is the number of bitmap or SDF misses served by a resident size.
opaque_reordered: u32opaque_reordered is the number of opaque draws moved earlier for depth culling.
gpu_ms: f32gpu_ms is the previous resolved frame’s GPU time in milliseconds.
It is zero until a timestamp resolves or when timestamps are unavailable.
blocks_created: u32blocks_created is the number of transient upload blocks allocated this frame.
cpu_ms: f32cpu_ms is total CPU time spent in rendering and submission.
draw_calls: u32draw_calls is the number of encoded GPU draw commands.
One logical draw may require several commands, while batched glyphs may share one.
render_passes: u32render_passes is the number of encoded render passes.
pipeline_switches: u32pipeline_switches is the number of encoded pipeline changes.
vertex_bytes: u64vertex_bytes is the number of transient vertex bytes uploaded.
uniform_bytes: u64uniform_bytes is the number of transient uniform bytes uploaded.
plan_ms: f32plan_ms is the CPU time spent replaying and planning.
encode_ms: f32encode_ms is the CPU time spent compiling, uploading, encoding, and submitting.
Trait Implementations§
Source§impl Clone for RenderStats
impl Clone for RenderStats
Source§fn clone(&self) -> RenderStats
fn clone(&self) -> RenderStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more