pub struct FlushReport {
pub dirty_regions: usize,
pub strips_or_buffers: usize,
pub pixels_updated: usize,
}Expand description
单帧平台表面刷新统计报告。
Fields§
§dirty_regions: usize本帧合并提交的脏矩形数量(0 表示静止帧未触发重绘)。
strips_or_buffers: usize本帧传输的条带数(MCU 模式)或提交的共享内存缓冲区数(Winit/Wayland/KMS/桌面模式)。
pixels_updated: usize本帧实际光栅化并刷新的像素总数。
Implementations§
Source§impl FlushReport
impl FlushReport
Sourcepub const fn has_updates(&self) -> bool
pub const fn has_updates(&self) -> bool
本帧是否发生了实际像素重绘。
Trait Implementations§
Source§impl Clone for FlushReport
impl Clone for FlushReport
impl Copy for FlushReport
Source§impl Debug for FlushReport
impl Debug for FlushReport
Source§impl Default for FlushReport
impl Default for FlushReport
impl Eq for FlushReport
Source§impl PartialEq for FlushReport
impl PartialEq for FlushReport
impl StructuralPartialEq for FlushReport
Auto Trait Implementations§
impl Forget for FlushReport
impl Freeze for FlushReport
impl Move for FlushReport
impl RefUnwindSafe for FlushReport
impl Send for FlushReport
impl Sync for FlushReport
impl Unpin for FlushReport
impl UnsafeUnpin for FlushReport
impl UnwindSafe for FlushReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。