Struct gpu_allocator::vulkan::AllocationCreateDesc
source · pub struct AllocationCreateDesc<'a> {
pub name: &'a str,
pub requirements: MemoryRequirements,
pub location: MemoryLocation,
pub linear: bool,
pub allocation_scheme: AllocationScheme,
}
Fields§
§name: &'a str
Name of the allocation, for tracking and debugging purposes
requirements: MemoryRequirements
Vulkan memory requirements for an allocation
location: MemoryLocation
Location where the memory allocation should be stored
linear: bool
If the resource is linear (buffer / linear texture) or a regular (tiled) texture.
allocation_scheme: AllocationScheme
Determines how this allocation should be managed.
Trait Implementations§
source§impl<'a> Clone for AllocationCreateDesc<'a>
impl<'a> Clone for AllocationCreateDesc<'a>
source§fn clone(&self) -> AllocationCreateDesc<'a>
fn clone(&self) -> AllocationCreateDesc<'a>
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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for AllocationCreateDesc<'a>
impl<'a> Send for AllocationCreateDesc<'a>
impl<'a> Sync for AllocationCreateDesc<'a>
impl<'a> Unpin for AllocationCreateDesc<'a>
impl<'a> UnwindSafe for AllocationCreateDesc<'a>
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