pub struct SkinnedSlotLayout {
pub skinned_index: usize,
pub vertex_base: u32,
pub vertex_count: usize,
pub index_count: usize,
}Expand description
The post-rebuild layout for one skinned slot, returned by
RenderBackend::rebuild_skinned_geometry so the asset hot-reload
helper can refresh its SkinnedMeshSourceEntrys’
vertex_base / vertex_count / index_count to point at the new
regions. Returned for every slot (both the ones whose geometry was
replaced and the ones whose geometry was carried over) because the
rebuild may have shifted every slot’s vertex_base.
Constructed only by the cn debug binary’s skinned-rebuild reload pass;
reads as dead under cargo check --lib.
Fields§
§skinned_index: usizeThe skinned slot this layout describes.
vertex_base: u32First vertex of the slot’s region in the shared skinned buffer.
vertex_count: usizeVertices in the slot’s region.
index_count: usizeIndices in the slot’s region.
Auto Trait Implementations§
impl Freeze for SkinnedSlotLayout
impl RefUnwindSafe for SkinnedSlotLayout
impl Send for SkinnedSlotLayout
impl Sync for SkinnedSlotLayout
impl Unpin for SkinnedSlotLayout
impl UnsafeUnpin for SkinnedSlotLayout
impl UnwindSafe for SkinnedSlotLayout
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
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