pub struct AssetBudgetConfig { /* private fields */ }Expand description
Explicit RAM and VRAM memory ceiling configuration for AssetManager.
Implementations§
Source§impl AssetBudgetConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl AssetBudgetConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_ram_budget_bytes(&self) -> usize
pub fn get_mut_ram_budget_bytes(&mut self) -> &mut usize
pub fn set_ram_budget_bytes(&mut self, val: usize) -> &mut Self
pub fn get_vram_budget_bytes(&self) -> usize
pub fn get_mut_vram_budget_bytes(&mut self) -> &mut usize
pub fn set_vram_budget_bytes(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for AssetBudgetConfig
impl Clone for AssetBudgetConfig
impl Copy for AssetBudgetConfig
Source§impl Debug for AssetBudgetConfig
impl Debug for AssetBudgetConfig
Source§impl Default for AssetBudgetConfig
Default RAM and VRAM asset budget configuration.
impl Default for AssetBudgetConfig
Default RAM and VRAM asset budget configuration.
impl Eq for AssetBudgetConfig
Source§impl PartialEq for AssetBudgetConfig
impl PartialEq for AssetBudgetConfig
impl StructuralPartialEq for AssetBudgetConfig
Auto Trait Implementations§
impl Forget for AssetBudgetConfig
impl Freeze for AssetBudgetConfig
impl Move for AssetBudgetConfig
impl RefUnwindSafe for AssetBudgetConfig
impl Send for AssetBudgetConfig
impl Sync for AssetBudgetConfig
impl Unpin for AssetBudgetConfig
impl UnsafeUnpin for AssetBudgetConfig
impl UnwindSafe for AssetBudgetConfig
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