[][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<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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