pub struct LodPlanner { /* private fields */ }Expand description
Stateful planner retaining only hysteresis/refinement state.
Implementations§
Source§impl LodPlanner
impl LodPlanner
Sourcepub fn try_new(options: LodPlannerOptions) -> LodResult<Self>
pub fn try_new(options: LodPlannerOptions) -> LodResult<Self>
Creates a validated planner.
Sourcepub fn plan(
&mut self,
index: &LodIndex,
camera: &Camera,
aspect: f32,
budgets: LodBudgets,
resident: &BTreeSet<NodeId>,
in_flight: &BTreeSet<NodeId>,
) -> LodResult<LodPlan>
pub fn plan( &mut self, index: &LodIndex, camera: &Camera, aspect: f32, budgets: LodBudgets, resident: &BTreeSet<NodeId>, in_flight: &BTreeSet<NodeId>, ) -> LodResult<LodPlan>
Plans selection, requests, cancellation, and progressive display.
resident and in_flight are snapshots owned by the caller’s explicit
residency/source layer. Traversal order in the source index cannot affect
the result.
Trait Implementations§
Source§impl Clone for LodPlanner
impl Clone for LodPlanner
Source§fn clone(&self) -> LodPlanner
fn clone(&self) -> LodPlanner
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 moreAuto Trait Implementations§
impl Freeze for LodPlanner
impl RefUnwindSafe for LodPlanner
impl Send for LodPlanner
impl Sync for LodPlanner
impl Unpin for LodPlanner
impl UnsafeUnpin for LodPlanner
impl UnwindSafe for LodPlanner
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