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

Generic allocation.

Allocation dedicated to a buffer.

Allocation dedicated to an image.

Trait Implementations

impl<'a> Debug for DedicatedAlloc<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Copy for DedicatedAlloc<'a>
[src]

impl<'a> Clone for DedicatedAlloc<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more