[][src]Struct gfx_memory::GeneralConfig

pub struct GeneralConfig {
    pub block_size_granularity: Size,
    pub max_chunk_size: Size,
    pub min_device_allocation: Size,
}

Config for GeneralAllocator.

Fields

block_size_granularity: Size

All requests are rounded up to multiple of this value.

max_chunk_size: Size

Maximum chunk of blocks size. Actual chunk size is min(max_chunk_size, block_size * blocks_per_chunk)

min_device_allocation: Size

Minimum size of device allocation.

Trait Implementations

impl Clone for GeneralConfig[src]

impl Copy for GeneralConfig[src]

impl Debug for GeneralConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for GeneralConfig

impl Send for GeneralConfig

impl Sync for GeneralConfig

impl Unpin for GeneralConfig

impl UnwindSafe for GeneralConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.