pub struct ChunkPlan {
pub to_load: Vec<(ChunkCoord, ChunkDetail)>,
pub to_evict: Vec<ChunkCoord>,
}Expand description
The load / evict decisions produced by one ChunkWindow::plan call.
Fields§
§to_load: Vec<(ChunkCoord, ChunkDetail)>Chunks whose background load should be dispatched this frame, nearest
to the camera first, each tagged with the detail to generate it at.
Already marked ChunkState::Pending.
to_evict: Vec<ChunkCoord>Chunks removed from the GPU this frame: those that fell outside the evict radius, plus those crossing the near/far boundary (which reload at the new detail). Already dropped from the window’s tracking map.
Trait Implementations§
impl Eq for ChunkPlan
impl StructuralPartialEq for ChunkPlan
Auto Trait Implementations§
impl Freeze for ChunkPlan
impl RefUnwindSafe for ChunkPlan
impl Send for ChunkPlan
impl Sync for ChunkPlan
impl Unpin for ChunkPlan
impl UnsafeUnpin for ChunkPlan
impl UnwindSafe for ChunkPlan
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.