Enum vulkano::memory::pool::PotentialDedicatedAllocation
source · 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
Trait Implementations
sourceimpl<A: Debug> Debug for PotentialDedicatedAllocation<A>
impl<A: Debug> Debug for PotentialDedicatedAllocation<A>
sourceimpl<A> From<A> for PotentialDedicatedAllocation<A>
impl<A> From<A> for PotentialDedicatedAllocation<A>
sourcefn from(alloc: A) -> PotentialDedicatedAllocation<A>
fn from(alloc: A) -> PotentialDedicatedAllocation<A>
Converts to this type from the input type.
sourceimpl<A> MemoryPoolAlloc for PotentialDedicatedAllocation<A>where
A: MemoryPoolAlloc,
impl<A> MemoryPoolAlloc for PotentialDedicatedAllocation<A>where
A: MemoryPoolAlloc,
sourcefn mapped_memory(&self) -> Option<&MappedDeviceMemory>
fn mapped_memory(&self) -> Option<&MappedDeviceMemory>
Returns the memory object from which this is allocated. Returns
None
if the memory is
not mapped. Read moresourcefn memory(&self) -> &DeviceMemory
fn memory(&self) -> &DeviceMemory
Returns the memory object from which this is allocated.
Auto Trait Implementations
impl<A> RefUnwindSafe for PotentialDedicatedAllocation<A>where
A: RefUnwindSafe,
impl<A> Send for PotentialDedicatedAllocation<A>where
A: Send,
impl<A> Sync for PotentialDedicatedAllocation<A>where
A: Sync,
impl<A> Unpin for PotentialDedicatedAllocation<A>where
A: Unpin,
impl<A> UnwindSafe for PotentialDedicatedAllocation<A>where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.