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 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