Skip to main content

SkeletalSectionSource

Trait SkeletalSectionSource 

pub trait SkeletalSectionSource {
    // Required methods
    fn section_counts(&self) -> SkeletalCounts;
    fn decode_section_into(
        &self,
        joints: &mut [Joint],
        joint_ids: &mut [u64],
        skin: &mut [SkinWeight],
        clips: &mut [ClipRecord],
        tracks: &mut [Track],
        keys: &mut [Key],
    ) -> Result<(), PlayerError>;
}
Expand description

Zero-copy section source abstraction so SkeletalPlayer can be constructed from .10d SkeletalSection payloads or direct in-memory slice descriptors without introducing reverse crate dependencies.

Required Methods§

fn section_counts(&self) -> SkeletalCounts

Returns the element counts and encoded byte size for budget admission.

fn decode_section_into( &self, joints: &mut [Joint], joint_ids: &mut [u64], skin: &mut [SkinWeight], clips: &mut [ClipRecord], tracks: &mut [Track], keys: &mut [Key], ) -> Result<(), PlayerError>

Copies the validated rig, skin weights, clips, tracks, and keys into caller-owned slices.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§