#[repr(C)]pub struct VmaVirtualBlockCreateInfo {
pub size: DeviceSize,
pub flags: VmaVirtualBlockCreateFlags,
pub pAllocationCallbacks: *const AllocationCallbacks,
}Expand description
Parameters of created #VmaVirtualBlock object to be passed to vmaCreateVirtualBlock().
Fields§
§size: DeviceSizeTotal size of the virtual block.
Sizes can be expressed in bytes or any units you want as long as you are consistent in using them. For example, if you allocate from some array of structures, 1 can mean single instance of entire structure.
flags: VmaVirtualBlockCreateFlagsUse combination of #VmaVirtualBlockCreateFlagBits.
pAllocationCallbacks: *const AllocationCallbacksCustom CPU memory allocation callbacks. Optional.
Optional, can be null. When specified, they will be used for all CPU-side memory allocations.
Auto Trait Implementations§
impl Freeze for VmaVirtualBlockCreateInfo
impl RefUnwindSafe for VmaVirtualBlockCreateInfo
impl !Send for VmaVirtualBlockCreateInfo
impl !Sync for VmaVirtualBlockCreateInfo
impl Unpin for VmaVirtualBlockCreateInfo
impl UnwindSafe for VmaVirtualBlockCreateInfo
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