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
Generic(A)
Dedicated(DeviceMemory)
DedicatedMapped(MappedDeviceMemory)
Trait Implementations
impl<A: Debug> Debug for PotentialDedicatedAllocation<A>
[src]
impl<A: Debug> Debug for PotentialDedicatedAllocation<A>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<A> MemoryPoolAlloc for PotentialDedicatedAllocation<A> where
A: MemoryPoolAlloc,
[src]
impl<A> MemoryPoolAlloc for PotentialDedicatedAllocation<A> where
A: MemoryPoolAlloc,
fn mapped_memory(&self) -> Option<&MappedDeviceMemory>
[src]
fn mapped_memory(&self) -> Option<&MappedDeviceMemory>
Returns the memory object from which this is allocated. Returns None
if the memory is not mapped. Read more
fn memory(&self) -> &DeviceMemory
[src]
fn memory(&self) -> &DeviceMemory
Returns the memory object from which this is allocated.
fn offset(&self) -> usize
[src]
fn offset(&self) -> usize
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]
impl<A> From<A> for PotentialDedicatedAllocation<A>
fn from(alloc: A) -> PotentialDedicatedAllocation<A>
[src]
fn from(alloc: A) -> PotentialDedicatedAllocation<A>
Performs the conversion.
Auto Trait Implementations
impl<A> Send for PotentialDedicatedAllocation<A> where
A: Send,
impl<A> Send for PotentialDedicatedAllocation<A> where
A: Send,
impl<A> Sync for PotentialDedicatedAllocation<A> where
A: Sync,
impl<A> Sync for PotentialDedicatedAllocation<A> where
A: Sync,