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 more