Struct vma::VirtualAllocationCreateInfo
source · pub struct VirtualAllocationCreateInfo {
pub size: u64,
pub alignment: u64,
pub user_data: usize,
pub flags: VirtualAllocationCreateFlags,
}
Fields§
§size: u64
Size of the allocation.
Cannot be zero.
alignment: u64
Required alignment of the allocation. Optional.
Must be power of two. Special value 0 has the same meaning as 1 - means no special alignment is required, so allocation can start at any offset.
user_data: usize
Custom pointer to be associated with the allocation. Optional.
It can be any value and can be used for user-defined purposes. It can be fetched or changed later.
flags: VirtualAllocationCreateFlags
Flags to configure allocation behavior for this allocation
Trait Implementations§
source§impl Clone for VirtualAllocationCreateInfo
impl Clone for VirtualAllocationCreateInfo
source§fn clone(&self) -> VirtualAllocationCreateInfo
fn clone(&self) -> VirtualAllocationCreateInfo
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 VirtualAllocationCreateInfo
impl Debug for VirtualAllocationCreateInfo
impl Copy for VirtualAllocationCreateInfo
Auto Trait Implementations§
impl RefUnwindSafe for VirtualAllocationCreateInfo
impl Send for VirtualAllocationCreateInfo
impl Sync for VirtualAllocationCreateInfo
impl Unpin for VirtualAllocationCreateInfo
impl UnwindSafe for VirtualAllocationCreateInfo
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