#[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: DeviceSizeSize of the allocation.
Cannot be zero.
alignment: DeviceSizeRequired 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: VmaVirtualAllocationCreateFlagsUse combination of #VmaVirtualAllocationCreateFlagBits.
pUserData: *mut c_voidCustom 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 Freeze for VmaVirtualAllocationCreateInfo
impl RefUnwindSafe for VmaVirtualAllocationCreateInfo
impl !Send for VmaVirtualAllocationCreateInfo
impl !Sync for VmaVirtualAllocationCreateInfo
impl Unpin for VmaVirtualAllocationCreateInfo
impl UnwindSafe for VmaVirtualAllocationCreateInfo
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