#[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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.