Enum gpu_allocator::vulkan::AllocationScheme
source · pub enum AllocationScheme {
DedicatedBuffer(Buffer),
DedicatedImage(Image),
GpuAllocatorManaged,
}
Variants§
DedicatedBuffer(Buffer)
Perform a dedicated, driver-managed allocation for the given buffer, allowing it to perform optimizations on this type of allocation.
DedicatedImage(Image)
Perform a dedicated, driver-managed allocation for the given image, allowing it to perform optimizations on this type of allocation.
GpuAllocatorManaged
The memory for this resource will be allocated and managed by gpu-allocator.
Trait Implementations§
source§impl Clone for AllocationScheme
impl Clone for AllocationScheme
source§fn clone(&self) -> AllocationScheme
fn clone(&self) -> AllocationScheme
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 AllocationScheme
impl Debug for AllocationScheme
source§impl PartialEq for AllocationScheme
impl PartialEq for AllocationScheme
source§fn eq(&self, other: &AllocationScheme) -> bool
fn eq(&self, other: &AllocationScheme) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AllocationScheme
impl Eq for AllocationScheme
impl StructuralPartialEq for AllocationScheme
Auto Trait Implementations§
impl Freeze for AllocationScheme
impl RefUnwindSafe for AllocationScheme
impl Send for AllocationScheme
impl Sync for AllocationScheme
impl Unpin for AllocationScheme
impl UnwindSafe for AllocationScheme
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)