Enum vulkano::memory::DedicatedAlloc
source · pub enum DedicatedAlloc<'a> {
None,
Buffer(&'a UnsafeBuffer),
Image(&'a UnsafeImage),
}
Expand description
Indicates whether we want to allocate memory for a specific resource, or in a generic way.
Using dedicated allocations can yield better performance, but requires the
VK_KHR_dedicated_allocation
extension to be enabled on the device.
If a dedicated allocation is performed, it must only be bound to any resource other than the one that was passed with the enumeration.
Variants
None
Generic allocation.
Buffer(&'a UnsafeBuffer)
Allocation dedicated to a buffer.
Image(&'a UnsafeImage)
Allocation dedicated to an image.
Trait Implementations
sourceimpl<'a> Clone for DedicatedAlloc<'a>
impl<'a> Clone for DedicatedAlloc<'a>
sourcefn clone(&self) -> DedicatedAlloc<'a>
fn clone(&self) -> DedicatedAlloc<'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 DedicatedAlloc<'a>
impl<'a> Debug for DedicatedAlloc<'a>
impl<'a> Copy for DedicatedAlloc<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DedicatedAlloc<'a>
impl<'a> Send for DedicatedAlloc<'a>
impl<'a> Sync for DedicatedAlloc<'a>
impl<'a> Unpin for DedicatedAlloc<'a>
impl<'a> UnwindSafe for DedicatedAlloc<'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
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.