packed
Generated Rust API reference for byte_engine.
byte_engine / animation / packed
Module packed
Packed animation storage and allocation-free pose sampling.
Quick Reference
| Item | Kind | Description |
|---|---|---|
PackedAnimation | struct | The PackedAnimation struct provides a borrowing interface over one packed CPU animation buffer. |
Structs
PackedAnimation<'a>
struct PackedAnimation<'a> {
// [REDACTED: Private Fields]
}Defined in crates/byte-engine/src/animation/packed.rs:87-89
The PackedAnimation struct provides a borrowing interface over one packed CPU animation buffer.
Resident evaluation leases create this view over their pinned arena range. It contains no owned storage and is cheap to recreate for each sample.
Implementations
-
fn duration(self) -> f32Returns the clip duration encoded in the packed buffer header.
-
fn sample_local_pose(self, skeleton: &Skeleton, time: f32, output: &mut Vec<LocalTransform>)Samples the clip into a complete source-skeleton local pose while reusing caller storage.
Trait Implementations
impl ArchivePointee for PackedAnimation<'a>
-
type ArchivedMetadata = () -
fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for PackedAnimation<'a>
impl Clone for PackedAnimation<'a>
-
fn clone(&self) -> PackedAnimation<'a>Related:
PackedAnimation
impl Copy for PackedAnimation<'a>
impl Downcast for PackedAnimation<'a>
-
fn into_any(self: Box<T>) -> Box<dyn Any> -
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any> -
fn as_any(&self) -> &dyn Any -
fn as_any_mut(&mut self) -> &mut dyn Any
impl DowncastSend for PackedAnimation<'a>
-
fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
impl DowncastSync for PackedAnimation<'a>
-
fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
impl Instrument for PackedAnimation<'a>
impl LayoutRaw for PackedAnimation<'a>
-
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for PackedAnimation<'a>
-
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool -
fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointable for PackedAnimation<'a>
-
const ALIGN: usize -
type Init = T -
unsafe fn init(init: <T as Pointable>::Init) -> usize -
unsafe fn deref<'a>(ptr: usize) -> &'a T -
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T -
unsafe fn drop(ptr: usize)
impl Pointee for PackedAnimation<'a>
-
type Metadata = ()