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

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

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

Variants

Generic(A)

Tuple Fields of Generic

0: A
Dedicated(DeviceMemory)

Tuple Fields of Dedicated

0: DeviceMemory
DedicatedMapped(MappedDeviceMemory)

Tuple Fields of DedicatedMapped

0: MappedDeviceMemory

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Builds a pointer to this type from a raw pointer.

Returns true if the size is suitable to store a type like this.

Returns the size of an individual element.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.