Enum vulkano::memory::DedicatedAlloc [−][src]
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)
Tuple Fields
0: &'a UnsafeBuffer
Allocation dedicated to a buffer.
Image(&'a UnsafeImage)
Tuple Fields
0: &'a UnsafeImage
Allocation dedicated to an image.
Trait Implementations
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.