pub struct SkinnedDrawGeometryUpdate {
pub skinned_index: usize,
pub vertices: Vec<SkinnedVertex>,
pub indices: Vec<u16>,
}Expand description
One skinned draw slot’s fresh geometry, supplied to
RenderBackend::rebuild_skinned_geometry when an asset hot-reload
changed its vertex / index count and the slot can no longer hold the new
data in its existing region of the shared skinned vertex / index buffers.
The backend rebuilds both shared buffers; slots not named here keep their
current geometry, copied byte-for-byte from the live buffers and re-based
onto whatever new vertex region they land in. indices are mesh-relative
(0-based); the backend rebases them onto the new vertex region.
Fields§
§skinned_index: usizeThe skinned slot whose geometry is replaced.
vertices: Vec<SkinnedVertex>Replacement vertices.
indices: Vec<u16>Replacement indices, mesh-relative.
Auto Trait Implementations§
impl Freeze for SkinnedDrawGeometryUpdate
impl RefUnwindSafe for SkinnedDrawGeometryUpdate
impl Send for SkinnedDrawGeometryUpdate
impl Sync for SkinnedDrawGeometryUpdate
impl Unpin for SkinnedDrawGeometryUpdate
impl UnsafeUnpin for SkinnedDrawGeometryUpdate
impl UnwindSafe for SkinnedDrawGeometryUpdate
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