Struct vulkano::memory::allocator::AllocationCreateInfo
source · pub struct AllocationCreateInfo {
pub memory_type_filter: MemoryTypeFilter,
pub memory_type_bits: u32,
pub allocate_preference: MemoryAllocatePreference,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new allocation using a memory allocator.
Fields§
§memory_type_filter: MemoryTypeFilter
Filter used to narrow down the memory type to be selected.
The default value is MemoryTypeFilter::PREFER_DEVICE
.
memory_type_bits: u32
Allows you to further constrain the possible choices of memory types, by only allowing the memory type indices that have a corresponding bit at the same index set to 1.
The default value is u32::MAX
.
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 moresource§impl Debug for AllocationCreateInfo
impl Debug for AllocationCreateInfo
Auto Trait Implementations§
impl RefUnwindSafe for AllocationCreateInfo
impl Send for AllocationCreateInfo
impl Sync for AllocationCreateInfo
impl Unpin for AllocationCreateInfo
impl UnwindSafe for AllocationCreateInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more