Struct vulkano::memory::allocator::suballocator::Suballocation
source · pub struct Suballocation {
pub offset: DeviceSize,
pub size: DeviceSize,
pub allocation_type: AllocationType,
pub handle: AllocationHandle,
}
Expand description
An allocation made using a suballocator.
Fields§
§offset: DeviceSize
The absolute offset within the region. That means that this is already offset by the region’s offset, not relative to beginning of the region. This offset will be aligned to the requested alignment.
size: DeviceSize
The size of the allocation. This will be exactly equal to the requested size.
allocation_type: AllocationType
The type of resources that can be bound to this memory block. This will be exactly equal to the requested allocation type.
handle: AllocationHandle
An opaque handle identifying the allocation within the allocator.
Trait Implementations§
source§impl Clone for Suballocation
impl Clone for Suballocation
source§fn clone(&self) -> Suballocation
fn clone(&self) -> Suballocation
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 Suballocation
impl Debug for Suballocation
source§impl Hash for Suballocation
impl Hash for Suballocation
source§impl PartialEq for Suballocation
impl PartialEq for Suballocation
source§fn eq(&self, other: &Suballocation) -> bool
fn eq(&self, other: &Suballocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Suballocation
impl Eq for Suballocation
impl StructuralEq for Suballocation
impl StructuralPartialEq for Suballocation
Auto Trait Implementations§
impl RefUnwindSafe for Suballocation
impl Send for Suballocation
impl Sync for Suballocation
impl Unpin for Suballocation
impl UnwindSafe for Suballocation
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