pub enum MemTag {
Textures,
Meshes,
Chunks,
Shaders,
Audio,
Physics,
Ui,
Scratch,
Other,
}Expand description
What a block of memory is for. Other is the honest bucket for a reporter
that has no better answer; it is not a catch-all for everything unreported,
since the ledger only ever holds what someone reports into it.
Variants§
Textures
Texture images.
Meshes
Mesh geometry.
Chunks
Streamed world chunks.
Shaders
Compiled shader binaries and pipeline state.
Audio
Decoded audio clips and mixer buffers.
Physics
Physics bodies, colliders, and broad-phase structures.
Ui
Overlay and HUD geometry.
Scratch
Per-frame working memory: arenas and pools that are reset or reused rather than freed.
Other
Anything with no better bucket.
Implementations§
Trait Implementations§
impl Copy for MemTag
impl Eq for MemTag
Source§impl Ord for MemTag
impl Ord for MemTag
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MemTag
impl PartialOrd for MemTag
impl StructuralPartialEq for MemTag
Auto Trait Implementations§
impl Freeze for MemTag
impl RefUnwindSafe for MemTag
impl Send for MemTag
impl Sync for MemTag
impl Unpin for MemTag
impl UnsafeUnpin for MemTag
impl UnwindSafe for MemTag
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