Enum vulkano::memory::DedicatedAllocation
source · 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
sourceimpl<'a> Clone for DedicatedAllocation<'a>
impl<'a> Clone for DedicatedAllocation<'a>
sourcefn clone(&self) -> DedicatedAllocation<'a>
fn clone(&self) -> DedicatedAllocation<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'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
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