pub struct LodSlice {
pub index_offset: usize,
pub index_count: usize,
pub switch_distance: f32,
}Expand description
One LOD level past LOD0 for a DrawObject. Holds the rebased shared-index
buffer slice and the camera-distance threshold above which the renderer
picks this slice instead of the one stored on the parent DrawObject.
LodSlices are stored in ascending switch_distance order; the runtime
picks the highest-indexed slice whose threshold is ≤ the current camera
distance. The same base_vertex as the parent applies: LOD decimation
reuses the LOD0 vertex range, only the index list changes.
Fields§
§index_offset: usizeFirst index of this LOD’s slice in the shared index buffer.
index_count: usizeIndex count of this LOD’s slice.
switch_distance: f32Camera distance above which the renderer picks this slice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LodSlice
impl RefUnwindSafe for LodSlice
impl Send for LodSlice
impl Sync for LodSlice
impl Unpin for LodSlice
impl UnsafeUnpin for LodSlice
impl UnwindSafe for LodSlice
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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