Struct gpu_allocator::vulkan::AllocationCreateDesc
source · [−]pub struct AllocationCreateDesc<'a> {
pub name: &'a str,
pub requirements: MemoryRequirements,
pub location: MemoryLocation,
pub linear: bool,
}
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.
Trait Implementations
sourceimpl<'a> Clone for AllocationCreateDesc<'a>
impl<'a> Clone for AllocationCreateDesc<'a>
sourcefn clone(&self) -> AllocationCreateDesc<'a>
fn clone(&self) -> AllocationCreateDesc<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more