[]Trait amethyst_rendy::rendy::memory::MemoryUsage

pub trait MemoryUsage: Debug {
    fn properties_required(&self) -> Properties;
fn memory_fitness(&self, properties: Properties) -> u32;
fn allocator_fitness(&self, kind: Kind) -> u32; }

Memory usage trait.

Required methods

fn properties_required(&self) -> Properties

Get set of properties required for the usage.

fn memory_fitness(&self, properties: Properties) -> u32

Get comparable fitness value for memory properties.

Panics

This function will panic if properties set doesn't contain required properties.

fn allocator_fitness(&self, kind: Kind) -> u32

Get comparable fitness value for memory allocator.

Loading content...

Implementors

impl MemoryUsage for MemoryUsageValue

Memory usage trait.

impl MemoryUsage for Data

impl MemoryUsage for Download

impl MemoryUsage for Dynamic

impl MemoryUsage for Upload

impl<T> MemoryUsage for T where
    T: Deref + Debug,
    <T as Deref>::Target: MemoryUsage

Loading content...