pub struct MeshBindingCache {
pub influence_offsets: Vec<u32>,
pub bone_indices: Vec<u16>,
pub weights: Vec<f32>,
pub coords_x: Vec<f32>,
pub coords_y: Vec<f32>,
}Expand description
Pre-decoded skinned mesh bind-pose data for a single part.
Built once per part at SSAB load time from PartData.mesh_binding() (AoS
in the FlatBuffer), and shared by that part’s CachedPartData in every
animation: the binding belongs to the part, not to an animation. CSR layout for influence
offsets + SoA for weights / bind coords so the per-frame skinning pass
(compute_skinned_mesh_vertices) can stream the data SIMD-friendly.
Bone indices are part-resolved: ssconverter has already mapped each
TableIDPartsBone slot to its owning part index, so the runtime can
directly index bone_world_matrices[bone_indices[i]].
Fields§
§influence_offsets: Vec<u32>§bone_indices: Vec<u16>§weights: Vec<f32>§coords_x: Vec<f32>§coords_y: Vec<f32>Implementations§
Source§impl MeshBindingCache
impl MeshBindingCache
pub fn num_vertices(&self) -> usize
Trait Implementations§
Source§impl Clone for MeshBindingCache
impl Clone for MeshBindingCache
Auto Trait Implementations§
impl Freeze for MeshBindingCache
impl RefUnwindSafe for MeshBindingCache
impl Send for MeshBindingCache
impl Sync for MeshBindingCache
impl Unpin for MeshBindingCache
impl UnsafeUnpin for MeshBindingCache
impl UnwindSafe for MeshBindingCache
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