#[repr(C)]pub enum GPUMemorySettings {
prefer_performance = 0,
prefer_memory = 1,
custom_memory = 3,
}Expand description
this settings used to tell gpu pre information about our work
Variants§
prefer_performance = 0
our app needs to me more performant instead being cable of allocating too much memory on gpu side
prefer_memory = 1
our app will need to allocate memory on gpu side
custom_memory = 3
if you set this , you have to set customize.gpu_memory_custom this variable will be used for memory allocation in gpu it sets min and max of memory you need in gpu side
Trait Implementations§
Source§impl Clone for GPUMemorySettings
impl Clone for GPUMemorySettings
Source§fn clone(&self) -> GPUMemorySettings
fn clone(&self) -> GPUMemorySettings
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GPUMemorySettings
impl RefUnwindSafe for GPUMemorySettings
impl Send for GPUMemorySettings
impl Sync for GPUMemorySettings
impl Unpin for GPUMemorySettings
impl UnwindSafe for GPUMemorySettings
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)