pub struct RenderWork {
pub breaks_kind: u32,
pub breaks_image: u32,
pub breaks_clip: u32,
pub uploaded_bytes: u64,
pub glyphs_rasterized: u64,
pub atlas_resets: u64,
pub atlas_used: u32,
pub atlas_size: u32,
pub cached_images: u32,
pub gpu: Option<Duration>,
}Expand description
What the renderer’s resources looked like after a frame.
Fields§
§breaks_kind: u32Draw calls split because the kind of primitive changed.
breaks_image: u32Draw calls split because the image changed.
breaks_clip: u32Draw calls split because the clip changed.
uploaded_bytes: u64Bytes of instances sent to the GPU.
glyphs_rasterized: u64Glyphs rasterized since the renderer was created.
atlas_resets: u64Times the glyph atlas lost everything.
atlas_used: u32How full the glyph atlas is, in thousandths of its height.
atlas_size: u32Side of the glyph atlas in pixels.
cached_images: u32Image textures on the GPU.
gpu: Option<Duration>The GPU’s own time on a recent frame, when timing is on and it can tell.
Trait Implementations§
Source§impl Clone for RenderWork
impl Clone for RenderWork
Source§fn clone(&self) -> RenderWork
fn clone(&self) -> RenderWork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderWork
Source§impl Debug for RenderWork
impl Debug for RenderWork
Source§impl Default for RenderWork
impl Default for RenderWork
Source§fn default() -> RenderWork
fn default() -> RenderWork
Returns the “default value” for a type. Read more
impl Eq for RenderWork
Source§impl PartialEq for RenderWork
impl PartialEq for RenderWork
impl StructuralPartialEq for RenderWork
Auto Trait Implementations§
impl Freeze for RenderWork
impl RefUnwindSafe for RenderWork
impl Send for RenderWork
impl Sync for RenderWork
impl Unpin for RenderWork
impl UnsafeUnpin for RenderWork
impl UnwindSafe for RenderWork
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
Mutably borrows from an owned value. Read more