pub struct SceneStreamingPlanner {
pub pyramid: TilePyramid,
pub predictor: FrustumPredictor,
pub eviction: VramBudgetEviction,
pub active_lod: u8,
}Expand description
Combines tile pyramid indexing, frustum prediction, and VRAM eviction.
Fields§
§pyramid: TilePyramid§predictor: FrustumPredictor§eviction: VramBudgetEviction§active_lod: u8LOD level consulted when resolving predicted tiles.
Implementations§
Source§impl SceneStreamingPlanner
impl SceneStreamingPlanner
pub fn new( pyramid: TilePyramid, predictor: FrustumPredictor, max_tiles: usize, active_lod: u8, ) -> Self
Sourcepub fn plan_stream(
&mut self,
camera_pose: &CameraPose,
budget: &StreamBudget,
) -> StreamPlan
pub fn plan_stream( &mut self, camera_pose: &CameraPose, budget: &StreamBudget, ) -> StreamPlan
Plan which tiles to load and evict for the given camera pose and budget.
Auto Trait Implementations§
impl Freeze for SceneStreamingPlanner
impl RefUnwindSafe for SceneStreamingPlanner
impl Send for SceneStreamingPlanner
impl Sync for SceneStreamingPlanner
impl Unpin for SceneStreamingPlanner
impl UnsafeUnpin for SceneStreamingPlanner
impl UnwindSafe for SceneStreamingPlanner
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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