pub struct AtlasConfig {
pub initial_atlas_count: usize,
pub max_atlases: usize,
pub atlas_size: (u32, u32),
pub auto_grow: bool,
pub allocation_strategy: AllocationStrategy,
}Expand description
Configuration for multiple atlas support.
Note that any values provided here are recommendations and might not be fully honored depending on the capabilities of the backend. For example, if you define the atlas size to be 8192x8192 but the device only supports texture sizes up to 4096x4096, the backend will likely decide to instead use the value that is compatible with the device.
Fields§
§initial_atlas_count: usizeInitial number of atlases to create.
max_atlases: usizeMaximum number of atlases to create.
atlas_size: (u32, u32)Size of each atlas texture.
auto_grow: boolWhether to automatically create new atlases when needed.
allocation_strategy: AllocationStrategyStrategy for allocating images across atlases.
Trait Implementations§
Source§impl Clone for AtlasConfig
impl Clone for AtlasConfig
Source§fn clone(&self) -> AtlasConfig
fn clone(&self) -> AtlasConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AtlasConfig
impl Debug for AtlasConfig
Source§impl Default for AtlasConfig
impl Default for AtlasConfig
Source§fn default() -> AtlasConfig
fn default() -> AtlasConfig
Returns the “default value” for a type. Read more
impl Copy for AtlasConfig
Auto Trait Implementations§
impl Freeze for AtlasConfig
impl RefUnwindSafe for AtlasConfig
impl Send for AtlasConfig
impl Sync for AtlasConfig
impl Unpin for AtlasConfig
impl UnsafeUnpin for AtlasConfig
impl UnwindSafe for AtlasConfig
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