#[non_exhaustive]pub struct MemoryCounts {
pub geometries: usize,
pub textures: usize,
pub programs: usize,
}Expand description
info.memory plus info.programs.length: resident counts, never reset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.geometries: usizeEntries in the uploaded-geometry cache, swept as the consumer drops geometries (issue #58).
textures: usizeEntries in the 2D and cube texture caches, swept as the consumer drops textures (issue #158). A render target’s own colour texture and a morph data-array texture live on the texture rather than in a renderer map, so they upload but do not land here; they are freed with their owner.
programs: usizeDistinct compiled programs — renderer.info.programs.length: render
programs plus compute pipelines. Two materials that generate the same
WGSL share one. A program goes once nothing has named it for a few
frames (issue #237), so this falls as well as rises.
Trait Implementations§
Source§impl Clone for MemoryCounts
impl Clone for MemoryCounts
impl Copy for MemoryCounts
Source§impl Debug for MemoryCounts
impl Debug for MemoryCounts
Source§impl Default for MemoryCounts
impl Default for MemoryCounts
impl Eq for MemoryCounts
Source§impl PartialEq for MemoryCounts
impl PartialEq for MemoryCounts
impl StructuralPartialEq for MemoryCounts
Auto Trait Implementations§
impl Freeze for MemoryCounts
impl RefUnwindSafe for MemoryCounts
impl Send for MemoryCounts
impl Sync for MemoryCounts
impl Unpin for MemoryCounts
impl UnsafeUnpin for MemoryCounts
impl UnwindSafe for MemoryCounts
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.