Struct vulkano::memory::allocator::AllocationCreateInfo
source · pub struct AllocationCreateInfo {
pub usage: MemoryUsage,
pub allocate_preference: MemoryAllocatePreference,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new allocation using a memory allocator.
Fields§
§usage: MemoryUsage
The intended usage for the allocation.
The default value is MemoryUsage::DeviceOnly
.
allocate_preference: MemoryAllocatePreference
How eager the allocator should be to allocate DeviceMemory
.
The default value is MemoryAllocatePreference::Unknown
.
_ne: NonExhaustive
Trait Implementations§
source§impl Clone for AllocationCreateInfo
impl Clone for AllocationCreateInfo
source§fn clone(&self) -> AllocationCreateInfo
fn clone(&self) -> AllocationCreateInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more