[][src]Struct cart_tmp_gmem::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.

Implementations

impl DedicatedAllocator[src]

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

Create new DedicatedAllocator for memory_type with memory_properties specified

Trait Implementations

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

type Block = DedicatedBlock<B>

Block type returned by allocator.

impl Debug for DedicatedAllocator[src]

impl Drop for DedicatedAllocator[src]

Auto Trait Implementations

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, 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.