Enum vulkano::memory::pool::PotentialDedicatedAllocation[][src]

pub enum PotentialDedicatedAllocation<A> {
    Generic(A),
    Dedicated(DeviceMemory),
    DedicatedMapped(MappedDeviceMemory),
}

Enumeration that can contain either a generic allocation coming from a pool, or a dedicated allocation for one specific resource.

Variants

Trait Implementations

impl<A: Debug> Debug for PotentialDedicatedAllocation<A>
[src]

Formats the value using the given formatter. Read more

impl<A> MemoryPoolAlloc for PotentialDedicatedAllocation<A> where
    A: MemoryPoolAlloc
[src]

Returns the memory object from which this is allocated. Returns None if the memory is not mapped. Read more

Returns the memory object from which this is allocated.

Returns the offset at the start of the memory where the first byte of this allocation resides. Read more

impl<A> From<A> for PotentialDedicatedAllocation<A>
[src]

Performs the conversion.

Auto Trait Implementations

impl<A> Send for PotentialDedicatedAllocation<A> where
    A: Send

impl<A> Sync for PotentialDedicatedAllocation<A> where
    A: Sync