pub struct BrickCache { /* private fields */ }Expand description
Persistent, cross-frame brick occupancy cache (Substage DDA.7
perf). Keyed by (chunk x, y, z, mip) with the chunk’s edit
version; an entry is reused until its chunk’s version changes, so a
static / streamed-once world pays zero brick-build cost after the
first frame (the per-frame rebuild was the dominant DDA cost).
Owned by the caller across frames (the scene’s Grid), populated
single-threaded via Self::ensure, then borrowed immutably by the
parallel render bands.
Implementations§
Trait Implementations§
Source§impl Debug for BrickCache
impl Debug for BrickCache
Source§impl Default for BrickCache
impl Default for BrickCache
Source§fn default() -> BrickCache
fn default() -> BrickCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BrickCache
impl RefUnwindSafe for BrickCache
impl Send for BrickCache
impl Sync for BrickCache
impl Unpin for BrickCache
impl UnsafeUnpin for BrickCache
impl UnwindSafe for BrickCache
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
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