Struct gpu_allocator::AllocationSizes
source · pub struct AllocationSizes { /* private fields */ }
Expand description
The sizes of the memory blocks that the allocator will create.
Useful for tuning the allocator to your application’s needs. For example most games will be fine with the default values, but eg. an app might want to use smaller block sizes to reduce the amount of memory used.
Clamped between 4MB and 256MB, and rounds up to the nearest multiple of 4MB for alignment reasons.
Implementations§
Trait Implementations§
source§impl Clone for AllocationSizes
impl Clone for AllocationSizes
source§fn clone(&self) -> AllocationSizes
fn clone(&self) -> AllocationSizes
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 AllocationSizes
impl Debug for AllocationSizes
source§impl Default for AllocationSizes
impl Default for AllocationSizes
impl Copy for AllocationSizes
Auto Trait Implementations§
impl Freeze for AllocationSizes
impl RefUnwindSafe for AllocationSizes
impl Send for AllocationSizes
impl Sync for AllocationSizes
impl Unpin for AllocationSizes
impl UnwindSafe for AllocationSizes
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: 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
)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
)