pub struct VulkanRendererStats {
pub rects_rendered: u32,
pub glyphs_rendered: u32,
pub commands_ignored: u32,
}Expand description
Saturating lowering counters for the most recently processed scene.
The values update after geometry lowering, even if later Vulkan allocation or submission fails. A newly constructed renderer reports all zeros.
§Examples
use ailloli_ui_render_vulkan::VulkanRendererStats;
let stats = VulkanRendererStats::default();
assert_eq!((stats.rects_rendered, stats.glyphs_rendered, stats.commands_ignored), (0, 0, 0));Fields§
§rects_rendered: u32Solid/rounded fills and text-decoration rectangles emitted.
glyphs_rendered: u32Text and Lucide glyph quads emitted.
commands_ignored: u32Unsupported scene commands skipped.
Trait Implementations§
Source§impl Clone for VulkanRendererStats
impl Clone for VulkanRendererStats
Source§fn clone(&self) -> VulkanRendererStats
fn clone(&self) -> VulkanRendererStats
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VulkanRendererStats
impl Debug for VulkanRendererStats
Source§impl Default for VulkanRendererStats
impl Default for VulkanRendererStats
Source§fn default() -> VulkanRendererStats
fn default() -> VulkanRendererStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for VulkanRendererStats
impl PartialEq for VulkanRendererStats
impl Copy for VulkanRendererStats
impl Eq for VulkanRendererStats
impl StructuralPartialEq for VulkanRendererStats
Auto Trait Implementations§
impl Freeze for VulkanRendererStats
impl RefUnwindSafe for VulkanRendererStats
impl Send for VulkanRendererStats
impl Sync for VulkanRendererStats
impl Unpin for VulkanRendererStats
impl UnwindSafe for VulkanRendererStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.