Enum vulkano::memory::DedicatedAlloc
[−]
[src]
pub enum DedicatedAlloc<'a> { None, Buffer(&'a UnsafeBuffer), Image(&'a UnsafeImage), }
Indicates whether we want to allocate memory for a specific resource, or in a generic way.
Using dedicated allocations can yield faster performances, 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
impl<'a> Debug for DedicatedAlloc<'a>
[src]
impl<'a> Copy for DedicatedAlloc<'a>
[src]
impl<'a> Clone for DedicatedAlloc<'a>
[src]
fn clone(&self) -> DedicatedAlloc<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more