Struct vk_mem_alloc::ffi::VmaVirtualAllocationCreateInfo
source · [−]#[repr(C)]pub struct VmaVirtualAllocationCreateInfo {
pub size: DeviceSize,
pub alignment: DeviceSize,
pub flags: VmaVirtualAllocationCreateFlags,
pub pUserData: *mut c_void,
}
Expand description
Parameters of created virtual allocation to be passed to vmaVirtualAllocate().
Fields
size: DeviceSize
\brief Size of the allocation.
Cannot be zero.
alignment: DeviceSize
\brief 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.
flags: VmaVirtualAllocationCreateFlags
\brief Use combination of #VmaVirtualAllocationCreateFlagBits.
pUserData: *mut c_void
\brief 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.
Auto Trait Implementations
impl RefUnwindSafe for VmaVirtualAllocationCreateInfo
impl !Send for VmaVirtualAllocationCreateInfo
impl !Sync for VmaVirtualAllocationCreateInfo
impl Unpin for VmaVirtualAllocationCreateInfo
impl UnwindSafe for VmaVirtualAllocationCreateInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more