Enum vulkano::memory::DedicatedAllocation
source · pub enum DedicatedAllocation<'a> {
Buffer(&'a RawBuffer),
Image(&'a RawImage),
}
Expand description
Indicates a specific resource to allocate memory for.
Using dedicated allocations can yield better performance, but requires the
khr_dedicated_allocation
extension to be enabled on the device.
If a dedicated allocation is performed, it must not be bound to any resource other than the one that was passed with the enumeration.
Variants§
Buffer(&'a RawBuffer)
Allocation dedicated to a buffer.
Image(&'a RawImage)
Allocation dedicated to an image.
Trait Implementations§
source§impl<'a> Clone for DedicatedAllocation<'a>
impl<'a> Clone for DedicatedAllocation<'a>
source§fn clone(&self) -> DedicatedAllocation<'a>
fn clone(&self) -> DedicatedAllocation<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for DedicatedAllocation<'a>
impl<'a> Debug for DedicatedAllocation<'a>
impl<'a> Copy for DedicatedAllocation<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DedicatedAllocation<'a>
impl<'a> Send for DedicatedAllocation<'a>
impl<'a> Sync for DedicatedAllocation<'a>
impl<'a> Unpin for DedicatedAllocation<'a>
impl<'a> !UnwindSafe for DedicatedAllocation<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more