pub struct ImageTextureStats {
pub count: usize,
pub bytes: u64,
pub budget_bytes: u64,
}Expand description
图片纹理占用快照(Inspector/诊断用)。
定义放在 core 而不是 mgui-runtime:这只是三个后端无关的计数,
Inspector 读它不需要把整个 wgpu runtime 拉进依赖树。mgui-runtime
在 crate 根与 renderer 模块保留同名 re-export,旧路径继续可用。
Fields§
§count: usize§bytes: u64§budget_bytes: u64Trait Implementations§
Source§impl Clone for ImageTextureStats
impl Clone for ImageTextureStats
impl Copy for ImageTextureStats
Source§impl Debug for ImageTextureStats
impl Debug for ImageTextureStats
Auto Trait Implementations§
impl Forget for ImageTextureStats
impl Freeze for ImageTextureStats
impl Move for ImageTextureStats
impl RefUnwindSafe for ImageTextureStats
impl Send for ImageTextureStats
impl Sync for ImageTextureStats
impl Unpin for ImageTextureStats
impl UnsafeUnpin for ImageTextureStats
impl UnwindSafe for ImageTextureStats
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