[][src]Struct rendy_memory::DedicatedAllocator

pub struct DedicatedAllocator { /* fields omitted */ }

Dedicated memory allocator that uses memory object per allocation requested.

This allocator suites best huge allocations. From 32 MiB when GPU has 4-8 GiB memory total.

Heaps use this allocator when none of sub-allocators bound to the memory type can handle size required. TODO: Check if resource prefers dedicated memory.

Methods

impl DedicatedAllocator[src]

pub fn properties_required() -> Properties[src]

Get properties required by the allocator.

pub fn new(memory_type: MemoryTypeId, memory_properties: Properties) -> Self[src]

Create new LinearAllocator for memory_type with memory_properties specified

Trait Implementations

impl<B> Allocator<B> for DedicatedAllocator where
    B: Backend
[src]

type Block = DedicatedBlock<B>

Block type returned by allocator.

impl Drop for DedicatedAllocator[src]

impl Debug for DedicatedAllocator[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Supports for T[src]