[][src]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[src]

Memory usage trait.

impl MemoryUsage for Data[src]

impl MemoryUsage for Download[src]

impl MemoryUsage for Dynamic[src]

impl MemoryUsage for Upload[src]

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

Loading content...