packed
Generated Rust API reference for byte_engine.
byte_engine / animation / packed
Module packed
Packed animation storage and allocation-free pose sampling. Packed clips laid out for the way a pose is sampled: every track of a clip at one time.
Curves keyed at the same times share one timeline, so a pose searches each timeline's keys once instead of each curve's. A timeline stores its values key by key, with every curve's value at a key side by side, so sampling a pose reads two rows of adjacent words: the keys before and after the time.
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:65-67
The PackedAnimation struct provides a borrowing interface over one packed CPU animation buffer.
The animation pool creates this view over a resident clip's 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 frame_rate(self) -> Option<f32>Returns the frames per second the clip was authored at, if its source recorded one.
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 DowncastSync for PackedAnimation<'a>
-
fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
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 Pointee for PackedAnimation<'a>
-
type Metadata = ()