Enum vulkano::memory::DedicatedAllocation
source · [−]pub enum DedicatedAllocation<'a> {
Buffer(&'a UnsafeBuffer),
Image(&'a UnsafeImage),
}
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 UnsafeBuffer)
Allocation dedicated to a buffer.
Image(&'a UnsafeImage)
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 more
sourceimpl<'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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more