pub struct ChunkedCacheConfig {
pub chunk_size: f32,
pub chunk_resolution: usize,
pub cache_dir: Option<PathBuf>,
pub max_cached_chunks: usize,
}Expand description
Configuration for the chunked mesh cache.
Fields§
§chunk_size: f32Size of each chunk in world units.
chunk_resolution: usizeResolution (voxels per axis) used when meshing a single chunk.
cache_dir: Option<PathBuf>Optional disk persistence directory for .abm files.
max_cached_chunks: usizeMaximum number of chunk meshes kept in memory.
Trait Implementations§
Source§impl Clone for ChunkedCacheConfig
impl Clone for ChunkedCacheConfig
Source§impl Debug for ChunkedCacheConfig
impl Debug for ChunkedCacheConfig
Auto Trait Implementations§
impl Freeze for ChunkedCacheConfig
impl RefUnwindSafe for ChunkedCacheConfig
impl Send for ChunkedCacheConfig
impl Sync for ChunkedCacheConfig
impl Unpin for ChunkedCacheConfig
impl UnsafeUnpin for ChunkedCacheConfig
impl UnwindSafe for ChunkedCacheConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more