Byte Engine Docs
View on docs.rs

graph

Generated Rust API reference for byte_engine.

byte_engine / animation / graph


Module graph

Code-authored skeletal animation state machines and asynchronous clip pooling.

Build an AnimationGraph with AnimationGraphBuilder, then create an AnimationGraphPlayer for each animated skeleton. The player evaluates synchronously from retained pose buffers while AnimationPool loads clip resources on an application-owned async worker. Client code selects one durable AnimationStateId with normal Rust control flow, then the player reconciles its current playback toward that requested state. A state plays one clip, or blends several placed on a line or a plane: build those with AnimationGraphStateBuilder::linear and AnimationGraphStateBuilder::planar, and request them with a position through LinearStateId::at and PlanarStateId::at. Group states that share one position, like a walk and its starts and stops, into a space with AnimationGraphBuilder::planar_space. Connect state handles with AnimationGraphState::to, then use AnimationGraphTransitionConditionBuilder::when or AnimationGraphTransitionConditionBuilder::anytime to choose whether a one-shot transition clip can be interrupted.

Connection order

  1. During application setup, build the immutable graph and create one AnimationPool with the application's ResourceManager.
  2. Spawn the AnimationLoadWorker returned by AnimationPool::new on the same async runtime that serves resource requests. The pool only enqueues work, so clips remain in Loading until this worker runs.
  3. Create one AnimationGraphPlayer per animated instance with AnimationPool::create_player. The pool loads the initial clip, whose skeleton becomes the canonical target for every graph clip. As the player enters each state, it also requests clips in directly reachable states.
  4. Each application tick, call AnimationPool::update once, select an authored AnimationStateId (or an AnimationRequest that places a blend state), call AnimationGraphPlayer::advance, apply its root motion to the owning object, and send AnimationGraphPose::global_pose to rendering. For many characters, set each player's request with AnimationGraphPlayer::request and advance them together with AnimationPool::advance_players, which spreads them over the alley's lanes; then read each one's AnimationGraphPlayer::pose.

Players share everything that isn't their own playback: the graph, the clips' bindings to the canonical skeleton, the pool's clips, and the poses a frame fills and reads, which belong to the thread that evaluates. The renderer's UpdatePose message owns its transform vector, so copying at that cross-system boundary is currently intentional. See crates/byte-engine/examples/animation_graph.rs for the complete headed application sequence.

Contents

Quick Reference

ItemKindDescription
AnimationStateIdstructThe AnimationStateId struct identifies one client-requestable state inside its originating [AnimationGraph].
AnimationClipstructThe AnimationClip struct identifies the resource and playback behavior used by one state.
AnimationGraphstructThe AnimationGraph struct stores immutable routes used to reconcile requested animation states.
AnimationGraphBuilderstructThe AnimationGraphBuilder struct assembles named clip states and their ordered reconciliation routes.
AnimationGraphStateBuilderstructThe AnimationGraphStateBuilder struct assigns a clip to a named graph state.
AnimationGraphSpacestructThe AnimationGraphSpace struct groups states that share one blend position, like the idle, walk, starts, and stops of a character moving in one direction.
AnimationGraphStatestructThe AnimationGraphState struct connects a state to other states during graph authoring.
AnimationGraphTransitionBuilderstructThe AnimationGraphTransitionBuilder struct assigns a clip to a route between two states.
AnimationGraphTransitionConditionBuilderstructThe AnimationGraphTransitionConditionBuilder struct holds unfinished one-shot route authoring so callers can choose its interruption policy.
AnimationBlendstruct
AnimationMotionstruct
AnimationRequeststruct
LinearGraphStatestruct
LinearStateIdstruct
PlanarGraphStatestruct
PlanarStateIdstruct
AnimationGraphPlayerstruct
AnimationGraphPosestruct
AnimationLoadWorkerstruct
AnimationPoolstruct
LookChainSettingsstruct
LookTargetstruct
RootMotionSettingsstruct
RootMotionTranslationstruct
AnimationPlaybackenumThe AnimationPlayback enum selects whether a state clip repeats or stops at its final pose.
AnimationGraphBuildErrorenumThe AnimationGraphBuildError enum reports invalid graph authoring input.
AnimationGraphPlayerErrorenum
AnimationPoolEventenum
AnimationPoolRequestenum
RootMotionRotationenum
ANIMATION_LOAD_QUEUE_CAPACITYconstBounds asynchronous animation load requests independently from the clip byte budget.
ANIMATION_POOL_EVENT_CAPACITYconstBounds retained load outcomes so diagnostics cannot outgrow the clip pool.

Structs

AnimationStateId

struct AnimationStateId {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:57-60

The AnimationStateId struct identifies one client-requestable state inside its originating AnimationGraph.

Trait Implementations

impl ArchivePointee for AnimationStateId
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationStateId
impl Clone for AnimationStateId
impl Copy for AnimationStateId
impl Debug for AnimationStateId
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationStateId
  • 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 AnimationStateId
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationStateId
impl<K> Equivalent for AnimationStateId
  • fn equivalent(&self, key: &K) -> bool
impl Hash for AnimationStateId
  • fn hash<__H: hash::Hasher>(&self, state: &mut __H)
impl Instrument for AnimationStateId
impl LayoutRaw for AnimationStateId
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationStateId
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationStateId
impl Pointee for AnimationStateId
  • type Metadata = ()
impl Read for AnimationStateId
impl StructuralPartialEq for AnimationStateId
impl WithSubscriber for AnimationStateId

AnimationClip

struct AnimationClip {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:76-80

The AnimationClip struct identifies the resource and playback behavior used by one state.

AnimationPool keys clips by their resource ID, so a clip keeps a stable identity across arena residency and eviction.

Implementations

  • fn looping(resource_id: impl Into<Arc<str>>) -> Self

    Creates a clip that restarts from its first sample after reaching its duration.

  • fn once(resource_id: impl Into<Arc<str>>) -> Self

    Creates a clip that holds its final sample after reaching its duration.

  • fn resource_id(&self) -> &str

    Returns the resource ID requested by an AnimationPool.

  • const fn playback(&self) -> AnimationPlayback

    Related: AnimationPlayback

    Returns the playback behavior used after the clip reaches its duration.

Trait Implementations

impl ArchivePointee for AnimationClip
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationClip
impl Clone for AnimationClip
impl Debug for AnimationClip
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationClip
  • 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 AnimationClip
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationClip
impl<K> Equivalent for AnimationClip
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for AnimationClip
impl LayoutRaw for AnimationClip
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationClip
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationClip
  • fn eq(&self, other: &AnimationClip) -> bool

    Related: AnimationClip

impl Pointee for AnimationClip
  • type Metadata = ()
impl Read for AnimationClip
impl StructuralPartialEq for AnimationClip
impl WithSubscriber for AnimationClip

AnimationGraph

struct AnimationGraph {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:263-274

The AnimationGraph struct stores immutable routes used to reconcile requested animation states.

Build the graph once with AnimationGraphBuilder, then share it between any number of AnimationGraphPlayer instances. Client code selects one of the graph's durable AnimationStateId values before each evaluation.

The graph also keeps its clips' pose maps, durations, and frame rates once players have resolved them against its canonical skeleton, so players that share a graph share that work too.

Implementations

  • const fn id(&self) -> u64

    Returns the number that tells this graph from every other, which its state IDs and the animators that play it

    carry.

  • fn builder() -> AnimationGraphBuilder

    Related: AnimationGraphBuilder

    Starts a builder for an animation reconciliation graph.

  • const fn initial_state(&self) -> AnimationStateId

    Related: AnimationStateId

    Returns the graph's initial state.

  • fn state_count(&self) -> usize

    Returns the number of authored states.

Trait Implementations

impl ArchivePointee for AnimationGraph
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraph
impl Downcast for AnimationGraph
  • 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 AnimationGraph
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationGraph
impl LayoutRaw for AnimationGraph
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraph
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraph
  • type Metadata = ()
impl Read for AnimationGraph
impl WithSubscriber for AnimationGraph

AnimationGraphBuilder

struct AnimationGraphBuilder {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:445-448

The AnimationGraphBuilder struct assembles named clip states and their ordered reconciliation routes.

Start one with AnimationGraph::builder, then name states with Self::state.

Implementations

  • fn state(&self, name: impl Into<String>) -> AnimationGraphStateBuilder<'_>

    Related: AnimationGraphStateBuilder

    Names a state. Call AnimationGraphStateBuilder::with next to assign its clip.

  • fn planar_space(&self, name: impl Into<String>) -> AnimationGraphSpace<'_>

    Related: AnimationGraphSpace

    Starts a space whose states share one position on a plane, like the direction and speed a character moves at.

    Add its states with AnimationGraphSpace::state.

  • fn linear_space(&self, name: impl Into<String>) -> AnimationGraphSpace<'_>

    Related: AnimationGraphSpace

    Starts a space whose states share one position on a line, like a speed. Add its states with

    AnimationGraphSpace::state.

  • fn any_state_to<'builder>(self: &'builder Self, target: impl Into<AnimationGraphState<'builder>>, inertialization: MediaTime)

    Related: AnimationGraphState, MediaTime

    Adds a route from every state to target, taken when the playing state has no route of its own to it. Use it for

    a state any moment can lead to, like a death, instead of a route from each state.

    Like an AnimationGraphTransitionBuilder::anytime route, it cuts short a one-shot clip or a blend in

    progress, inertializing over inertialization from the pose on screen.

  • fn build<'builder>(self: &'builder Self, initial: impl Into<AnimationGraphState<'builder>>) -> Result<AnimationGraph, AnimationGraphBuildError>

    Related: AnimationGraphState, AnimationGraph, AnimationGraphBuildError

    Validates the graph and selects the initial state.

Trait Implementations

impl ArchivePointee for AnimationGraphBuilder
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphBuilder
impl Downcast for AnimationGraphBuilder
  • 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 Instrument for AnimationGraphBuilder
impl LayoutRaw for AnimationGraphBuilder
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphBuilder
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphBuilder
  • type Metadata = ()
impl Read for AnimationGraphBuilder
impl WithSubscriber for AnimationGraphBuilder

AnimationGraphStateBuilder<'builder>

struct AnimationGraphStateBuilder<'builder> {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:541-547

The AnimationGraphStateBuilder struct assigns a clip to a named graph state.

Implementations

  • fn with(self, clip: AnimationClip) -> AnimationGraphState<'builder>

    Related: AnimationClip, AnimationGraphState

    Assigns the clip played while this state is active.

  • fn round_robin(self, clips: impl IntoIterator<Item = AnimationClip>) -> AnimationGraphState<'builder>

    Related: AnimationClip, AnimationGraphState

    Plays one of clips at a time, the next one each time a player enters the state, starting with the first and

    wrapping after the last. Use it to vary a state that plays again and again, like a death or a hit reaction,

    without picking the clip in application code.

    Every clip must loop, or every one must play once. Each player keeps its own turn. Request the state like a clip

    state, with AnimationGraphState::id, and connect it with AnimationGraphState::to or

    AnimationGraphBuilder::any_state_to.

  • fn linear(self, blend: AnimationBlend<f32>) -> LinearGraphState<'builder>

    Related: AnimationBlend, LinearGraphState

    Plays a blend of clips placed on a line. Request it with a position through LinearStateId::at.

    Named through AnimationGraphSpace::state, it weighs its clips at the space's position, which must be linear.

    Otherwise it forms a space of its own, named after the state.

  • fn planar(self, blend: AnimationBlend<[f32; 2]>) -> PlanarGraphState<'builder>

    Related: AnimationBlend, PlanarGraphState

    Plays a blend of clips placed on a plane, like locomotion directions. Request it with a position through

    PlanarStateId::at.

    Named through AnimationGraphSpace::state, it weighs its clips at the space's position, which must be planar.

    Otherwise it forms a space of its own, named after the state.

Trait Implementations

impl ArchivePointee for AnimationGraphStateBuilder<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphStateBuilder<'builder>
impl Downcast for AnimationGraphStateBuilder<'builder>
  • 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 Instrument for AnimationGraphStateBuilder<'builder>
impl LayoutRaw for AnimationGraphStateBuilder<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphStateBuilder<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphStateBuilder<'builder>
  • type Metadata = ()
impl Read for AnimationGraphStateBuilder<'builder>
impl WithSubscriber for AnimationGraphStateBuilder<'builder>

AnimationGraphSpace<'builder>

struct AnimationGraphSpace<'builder> {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:558-562

The AnimationGraphSpace struct groups states that share one blend position, like the idle, walk, starts, and stops of a character moving in one direction.

Create one with AnimationGraphBuilder::planar_space or AnimationGraphBuilder::linear_space, then add its states with Self::state. Requesting any blend state of the space with a position, like PlanarStateId::at, moves the position for every blend of the space, and a one-shot blend on a route into the space, like a stop, plays at the position the space had when it starts. Add routes every state of the space takes with Self::any_state_to.

Implementations

Trait Implementations

impl ArchivePointee for AnimationGraphSpace<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphSpace<'builder>
impl Clone for AnimationGraphSpace<'builder>
impl Copy for AnimationGraphSpace<'builder>
impl Downcast for AnimationGraphSpace<'builder>
  • 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 Instrument for AnimationGraphSpace<'builder>
impl LayoutRaw for AnimationGraphSpace<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphSpace<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphSpace<'builder>
  • type Metadata = ()
impl Read for AnimationGraphSpace<'builder>
impl WithSubscriber for AnimationGraphSpace<'builder>

AnimationGraphState<'builder>

struct AnimationGraphState<'builder> {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:566-569

The AnimationGraphState struct connects a state to other states during graph authoring.

Implementations

  • const fn id(self) -> AnimationStateId

    Related: AnimationStateId

    Returns the durable state ID that client code can request after the graph is built.

  • fn to(self, target: impl Into<Self>) -> AnimationGraphTransitionBuilder<'builder>

    Related: AnimationGraphTransitionBuilder

    Starts an authored route that reconciles toward target, which may be any kind of state.

Trait Implementations

impl ArchivePointee for AnimationGraphState<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphState<'builder>
impl Clone for AnimationGraphState<'builder>
impl Copy for AnimationGraphState<'builder>
impl Downcast for AnimationGraphState<'builder>
  • 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 Instrument for AnimationGraphState<'builder>
impl LayoutRaw for AnimationGraphState<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphState<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphState<'builder>
  • type Metadata = ()
impl Read for AnimationGraphState<'builder>
impl WithSubscriber for AnimationGraphState<'builder>

AnimationGraphTransitionBuilder<'builder>

struct AnimationGraphTransitionBuilder<'builder> {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:572-578

The AnimationGraphTransitionBuilder struct assigns a clip to a route between two states.

Implementations

  • fn matching_frames(self) -> Self

    Makes this route one of several fitted alternatives to the same destination, so a single request, such as

    idle, picks the stop that fits the playing blend soonest, like a stop off either foot.

    An alternative is eligible only when it names frames on every contributing source clip that any alternative

    names frames on; clips no alternative names don't constrain the choice. The eligible alternative whose frame

    comes first wins, and equal times keep authoring order. While the source blends in, the route waits for it to

    settle instead of taking a route of its space.

    Next, name the clips' frames with Self::at_frames, then assign the stop with Self::with.

  • fn at_frame(self, frame: u32) -> Self

    Waits for the source's playback to reach frame of its clip before taking the route. Use it to start a clip

    at the point of a loop it fits, like a jump off the right foot.

    Frames count from the clip's first frame at its authored frame rate. The source must play one clip; for a blend,

    use Self::at_frames. A route that plays a one-shot through Self::with waits before playing it. Requesting

    another state while the route waits cancels it.

  • fn at_frames(self, clip: &str, frames: impl IntoIterator<Item = u32>) -> Self

    Waits for the source's playback to reach any of frames of its clip clip, the resource ID of one of the

    source's clips. For a blend, its clips share one phase, so the frames of one clip place the moments for all.

    Call it for several clips of a blend to fit each, like the walk loops a stop blend's clips were measured

    against: the route waits for the frames of the named clip that weighs the most, the first named among equals.

  • fn at_time(self, time: MediaTime) -> Self

    Related: MediaTime

    Waits for the source's playback to reach time into its clip, for clips without an authored frame rate. The

    source must play one clip.

  • fn entering_at_frame(self, clip: &str, frame: u32) -> Self

    Starts the target at frame of its clip clip instead of at its beginning. Use it to pick up a loop at the

    point that fits the pose the route leaves from. On a route that plays a one-shot through Self::with, the

    target starts there once the one-shot hands over, like landing into a walk mid-stride.

    Call it for several clips of a blend to fit each: the named clip that weighs the most where the target starts

    picks the frame, the first named among equals.

  • fn when(self, inertialization: MediaTime) -> AnimationGraphState<'builder>

    Related: MediaTime, AnimationGraphState

    Adds a direct route without playing an intermediate clip, taken only once the source has settled.

    inertialization smooths the switch with critically damped inertialization for that duration.

    Pass MediaTime::ZERO to switch immediately. Use Self::anytime for a route that may also cut short a

    blend into the source or a one-shot clip that leads to it.

  • fn anytime(self, inertialization: MediaTime) -> AnimationGraphState<'builder>

    Related: MediaTime, AnimationGraphState

    Adds a direct route that is also taken while the source is still being blended in, or while a one-shot clip

    that leads to the source plays, cutting either short from the pose on screen.

    inertialization works as in Self::when. Responsive locomotion uses these routes so a change of input

    never waits for a blend or a start clip to finish.

  • fn with(self, motion: impl Into<AnimationMotion>) -> AnimationGraphTransitionConditionBuilder<'builder>

    Related: AnimationMotion, AnimationGraphTransitionConditionBuilder

    Assigns the one-shot played between the source and target states: an AnimationClip, or an

    AnimationBlend of clips that play once.

    A blend joins the target's space, or the source's when the target's space is of the other kind, and weighs its

    clips at that space's position and follows the position while it plays, like a loop. Use it for a start or

    a stop that follows the walk's direction; keep requesting it without a position to hold the direction it set

    off in.

Trait Implementations

impl ArchivePointee for AnimationGraphTransitionBuilder<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphTransitionBuilder<'builder>
impl Downcast for AnimationGraphTransitionBuilder<'builder>
  • 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 Instrument for AnimationGraphTransitionBuilder<'builder>
impl LayoutRaw for AnimationGraphTransitionBuilder<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphTransitionBuilder<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphTransitionBuilder<'builder>
  • type Metadata = ()
impl Read for AnimationGraphTransitionBuilder<'builder>
impl WithSubscriber for AnimationGraphTransitionBuilder<'builder>

AnimationGraphTransitionConditionBuilder<'builder>

struct AnimationGraphTransitionConditionBuilder<'builder> {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph.rs:581-590

The AnimationGraphTransitionConditionBuilder struct holds unfinished one-shot route authoring so callers can choose its interruption policy.

Implementations

  • fn exit(self, inertialization: MediaTime) -> Self

    Related: MediaTime

    Inertializes from the one-shot clip's last pose into the target state over inertialization once the clip

    ends, which hides small pose mismatches between the two clips. Without it the target starts immediately.

  • fn turning(self, yaw: f32) -> Self

    Hands yaw, in radians about +Y, to the entity through root motion when the one-shot completes. Use it for a

    turn in place: pass the angle the clip turns the body in its pose, and make the target a state whose pose

    faces where the clip started, so the entity takes over the turn in the frame the pose gives it up. The look

    chain holds its direction across it on its own. A one-shot cut short hands over no turn.

  • fn when(self, inertialization: MediaTime) -> AnimationGraphState<'builder>

    Related: MediaTime, AnimationGraphState

    Adds a one-shot route that must complete before reconciling another request. Only an any-state route, added

    with AnimationGraphBuilder::any_state_to, cuts its clip short.

    inertialization works as in AnimationGraphTransitionBuilder::when.

  • fn anytime(self, inertialization: MediaTime) -> AnimationGraphState<'builder>

    Related: MediaTime, AnimationGraphState

    Adds a one-shot route that can reconcile another request before it completes.

    inertialization works as in AnimationGraphTransitionBuilder::when.

Trait Implementations

impl ArchivePointee for AnimationGraphTransitionConditionBuilder<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphTransitionConditionBuilder<'builder>
impl Downcast for AnimationGraphTransitionConditionBuilder<'builder>
  • 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 Instrument for AnimationGraphTransitionConditionBuilder<'builder>
impl LayoutRaw for AnimationGraphTransitionConditionBuilder<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphTransitionConditionBuilder<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphTransitionConditionBuilder<'builder>
  • type Metadata = ()
impl Read for AnimationGraphTransitionConditionBuilder<'builder>
impl WithSubscriber for AnimationGraphTransitionConditionBuilder<'builder>

AnimationBlend<P>

struct AnimationBlend<P> {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph/motion.rs:105-108

The AnimationBlend struct collects the clips a blend state mixes and where each one sits.

Build one with Self::new and Self::sample, then give it to AnimationGraphStateBuilder::linear for positions on a line (f32) or AnimationGraphStateBuilder::planar for positions on a plane ([f32; 2]). Each frame, client code passes the position to play with LinearStateId::at or PlanarStateId::at.

Implementations

  • fn new() -> Self

    Starts an empty blend. Add its clips with Self::sample.

  • fn sample(self, position: P, clip: AnimationClip) -> Self

    Related: AnimationClip

    Places clip at position. Every clip of a blend must loop, or every one must play once.

Trait Implementations

impl ArchivePointee for AnimationBlend<P>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationBlend<P>
impl<P> Default for AnimationBlend<P>
  • fn default() -> Self
impl Downcast for AnimationBlend<P>
  • 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 AnimationBlend<P>
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationBlend<P>
impl LayoutRaw for AnimationBlend<P>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationBlend<P>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationBlend<P>
  • type Metadata = ()
impl Read for AnimationBlend<P>
impl<R, P> ReadPrimitive for AnimationBlend<P>
impl WithSubscriber for AnimationBlend<P>

AnimationMotion

struct AnimationMotion();

Defined in crates/byte-engine/src/animation/graph/motion.rs:80

The AnimationMotion struct is what a one-shot route plays: one clip, or a blend of clips that play once.

Pass an AnimationClip, or an AnimationBlend on a line or a plane, to AnimationGraphTransitionBuilder::with. A blend weighs its clips at its space's position when it starts, so a stop can follow the direction the walk had.

Trait Implementations

impl ArchivePointee for AnimationMotion
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationMotion
impl Downcast for AnimationMotion
  • 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 AnimationMotion
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationMotion
impl LayoutRaw for AnimationMotion
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationMotion
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationMotion
  • type Metadata = ()
impl Read for AnimationMotion
impl WithSubscriber for AnimationMotion

AnimationRequest

struct AnimationRequest {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph/motion.rs:329-334

The AnimationRequest struct is what client code asks a player for each frame: a state, and where to play its blend.

Make one from any state ID, or with LinearStateId::at and PlanarStateId::at for blend states, then pass it to AnimationGraphPlayer::advance. A position sets the position of the blend state's space, which every looping blend of the space follows. A blend requested without a position keeps its space's position, and a blend the player enters on its own starts there.

Implementations

  • const fn state(&self) -> AnimationStateId

    Related: AnimationStateId

    Returns the requested state.

  • const fn inertialized(self, duration: MediaTime) -> Self

    Related: MediaTime

    Blends a playing blend state to this request's position from the pose on screen over duration, instead of

    changing its clips' weights at once.

    Ask for it on the frame the position jumps, like a turnaround on a direction ring, where moving the weights in

    one frame would pop the pose. Requests without it change the weights at once, which suits positions that move

    a little each frame.

Trait Implementations

impl ArchivePointee for AnimationRequest
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationRequest
impl Clone for AnimationRequest
impl Copy for AnimationRequest
impl Debug for AnimationRequest
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationRequest
  • 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 AnimationRequest
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationRequest
impl LayoutRaw for AnimationRequest
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationRequest
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationRequest
impl Pointee for AnimationRequest
  • type Metadata = ()
impl Read for AnimationRequest
impl StructuralPartialEq for AnimationRequest
impl WithSubscriber for AnimationRequest

LinearGraphState<'builder>

struct LinearGraphState<'builder>();

Defined in crates/byte-engine/src/animation/graph/motion.rs:216

The LinearGraphState struct is a blend state whose clips sit on a line, as returned by AnimationGraphStateBuilder::linear.

Connect it with routes like any AnimationGraphState, then keep Self::id to request it.

Implementations

  • const fn id(self) -> LinearStateId

    Related: LinearStateId

    Returns the ID client code requests with a position on the line, through LinearStateId::at.

Trait Implementations

impl ArchivePointee for LinearGraphState<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for LinearGraphState<'builder>
impl Clone for LinearGraphState<'builder>
impl Copy for LinearGraphState<'builder>
impl Deref for LinearGraphState<'builder>
  • type Target = AnimationGraphState<'builder>
  • fn deref(&self) -> &<Self as >::Target
impl Downcast for LinearGraphState<'builder>
  • 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 Instrument for LinearGraphState<'builder>
impl LayoutRaw for LinearGraphState<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for LinearGraphState<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for LinearGraphState<'builder>
  • type Metadata = ()
impl Read for LinearGraphState<'builder>
impl Receiver for LinearGraphState<'builder>
  • type Target = T
impl WithSubscriber for LinearGraphState<'builder>

LinearStateId

struct LinearStateId();

Defined in crates/byte-engine/src/animation/graph/motion.rs:269

The LinearStateId struct identifies a blend state on a line, so only a scalar position can be requested for it.

Implementations

Trait Implementations

impl ArchivePointee for LinearStateId
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for LinearStateId
impl Clone for LinearStateId
impl Copy for LinearStateId
impl Debug for LinearStateId
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for LinearStateId
  • 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 LinearStateId
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for LinearStateId
impl<K> Equivalent for LinearStateId
  • fn equivalent(&self, key: &K) -> bool
impl Hash for LinearStateId
  • fn hash<__H: hash::Hasher>(&self, state: &mut __H)
impl Instrument for LinearStateId
impl LayoutRaw for LinearStateId
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for LinearStateId
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for LinearStateId
  • fn eq(&self, other: &LinearStateId) -> bool

    Related: LinearStateId

impl Pointee for LinearStateId
  • type Metadata = ()
impl Read for LinearStateId
impl StructuralPartialEq for LinearStateId
impl WithSubscriber for LinearStateId

PlanarGraphState<'builder>

struct PlanarGraphState<'builder>();

Defined in crates/byte-engine/src/animation/graph/motion.rs:244

The PlanarGraphState struct is a blend state whose clips sit on a plane, as returned by AnimationGraphStateBuilder::planar.

Connect it with routes like any AnimationGraphState, then keep Self::id to request it.

Implementations

  • const fn id(self) -> PlanarStateId

    Related: PlanarStateId

    Returns the ID client code requests with a position on the plane, through PlanarStateId::at.

Trait Implementations

impl ArchivePointee for PlanarGraphState<'builder>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for PlanarGraphState<'builder>
impl Clone for PlanarGraphState<'builder>
impl Copy for PlanarGraphState<'builder>
impl Deref for PlanarGraphState<'builder>
  • type Target = AnimationGraphState<'builder>
  • fn deref(&self) -> &<Self as >::Target
impl Downcast for PlanarGraphState<'builder>
  • 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 Instrument for PlanarGraphState<'builder>
impl LayoutRaw for PlanarGraphState<'builder>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for PlanarGraphState<'builder>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for PlanarGraphState<'builder>
  • type Metadata = ()
impl Read for PlanarGraphState<'builder>
impl Receiver for PlanarGraphState<'builder>
  • type Target = T
impl WithSubscriber for PlanarGraphState<'builder>

PlanarStateId

struct PlanarStateId();

Defined in crates/byte-engine/src/animation/graph/motion.rs:296

The PlanarStateId struct identifies a blend state on a plane, so only a 2D position can be requested for it.

Implementations

Trait Implementations

impl ArchivePointee for PlanarStateId
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for PlanarStateId
impl Clone for PlanarStateId
impl Copy for PlanarStateId
impl Debug for PlanarStateId
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for PlanarStateId
  • 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 PlanarStateId
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for PlanarStateId
impl<K> Equivalent for PlanarStateId
  • fn equivalent(&self, key: &K) -> bool
impl Hash for PlanarStateId
  • fn hash<__H: hash::Hasher>(&self, state: &mut __H)
impl Instrument for PlanarStateId
impl LayoutRaw for PlanarStateId
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for PlanarStateId
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for PlanarStateId
  • fn eq(&self, other: &PlanarStateId) -> bool

    Related: PlanarStateId

impl Pointee for PlanarStateId
  • type Metadata = ()
impl Read for PlanarStateId
impl StructuralPartialEq for PlanarStateId
impl WithSubscriber for PlanarStateId

AnimationGraphPlayer

struct AnimationGraphPlayer {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph/runtime/player.rs:411-428

The AnimationGraphPlayer struct retains local playback while the pool resolves all graph data asynchronously.

Create players with AnimationPool::create_player. Call AnimationPool::update once per tick, then either call Self::advance with the client-selected state, or set each player's state with Self::request and advance them all together with AnimationPool::advance_players. The initial clip supplies the canonical skeleton used by every graph clip.

Implementations

  • fn set_stream(&mut self, stream: Option<DebugDataStreamWriter>)

    Related: DebugDataStreamWriter

    Attaches a stream the player writes a record to after every advance, or detaches it with None.

    The animation system attaches writers created from world-spawned

    DebugDataStream requests. A player without a writer does no reporting work.

Trait Implementations

impl ArchivePointee for AnimationGraphPlayer
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphPlayer
impl Downcast for AnimationGraphPlayer
  • 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 AnimationGraphPlayer
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationGraphPlayer
impl LayoutRaw for AnimationGraphPlayer
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphPlayer
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphPlayer
  • type Metadata = ()
impl Read for AnimationGraphPlayer
impl WithSubscriber for AnimationGraphPlayer

AnimationGraphPose<'a>

struct AnimationGraphPose<'a> {
    pub skeleton: &'a resource_management::resources::skeleton::Skeleton,
    pub local_pose: &'a [resource_management::resources::skeleton::LocalTransform],
    pub global_pose: &'a [math::AffineMatrix],
    pub root_motion: super::root_motion::RootMotionDelta,
    pub state: Option<AnimationStateId>,
}

Defined in crates/byte-engine/src/animation/graph/runtime/player.rs:391-403

The AnimationGraphPose struct borrows the latest player pose and frame root motion.

Apply Self::root_motion to the owning object, then submit Self::global_pose to rendering during the current tick.

Fields

  • skeleton: &'a resource_management::resources::skeleton::Skeleton

    The canonical skeleton that defines the pose's node and matrix order.

  • local_pose: &'a [resource_management::resources::skeleton::LocalTransform]

    Blendable local transforms with extracted root motion removed when configured.

  • global_pose: &'a [math::AffineMatrix]

    Renderer-facing global skeleton transforms, one affine matrix per node, as UpdatePose carries them.

  • root_motion: super::root_motion::RootMotionDelta

    This frame's root translation and rotation delta.

  • state: Option<AnimationStateId>

    The state playing after this advance, as AnimationGraphPlayer::state reports it. Use it to react to a route taken this frame, like taking over a turn clip's rotation, while still holding the pose.

Trait Implementations

impl ArchivePointee for AnimationGraphPose<'a>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphPose<'a>
impl Downcast for AnimationGraphPose<'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 AnimationGraphPose<'a>
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationGraphPose<'a>
impl LayoutRaw for AnimationGraphPose<'a>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphPose<'a>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationGraphPose<'a>
  • type Metadata = ()
impl Read for AnimationGraphPose<'a>
impl WithSubscriber for AnimationGraphPose<'a>

AnimationLoadWorker

struct AnimationLoadWorker {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph/runtime.rs:385-389

The AnimationLoadWorker struct loads and packs animation resources away from synchronous pose evaluation.

Implementations

  • async fn run(self)

    Loads queued clips until the animation pool drops its command channel.

Trait Implementations

impl ArchivePointee for AnimationLoadWorker
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationLoadWorker
impl Downcast for AnimationLoadWorker
  • 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 AnimationLoadWorker
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationLoadWorker
impl LayoutRaw for AnimationLoadWorker
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationLoadWorker
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationLoadWorker
  • type Metadata = ()
impl Read for AnimationLoadWorker
impl WithSubscriber for AnimationLoadWorker

AnimationPool

struct AnimationPool {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/animation/graph/runtime.rs:83-97

The AnimationPool struct owns a preallocated word arena and byte-bounded LRU clip cache.

Graph clips keep their resource IDs as stable keys across eviction. Players only read the pool while they evaluate, so any number of them can sample it at once, on any lanes; loads are admitted and clips evicted only by the calls that take it mutably, Self::update and Self::request, between evaluations.

Implementations

  • fn create_player(&mut self, graph: &AnimationGraph, root_motion: Option<RootMotionSettings<'static>>) -> AnimationGraphPlayer

    Related: AnimationGraph, RootMotionSettings, AnimationGraphPlayer

    Creates a local player and queues the initial clip that supplies its canonical skeleton.

    Continue calling Self::update once per tick, then pass this pool to

    AnimationGraphPlayer::advance so requested clips can load through the

    same asynchronous worker.

  • fn advance_players(&mut self, players: &mut [AnimationGraphPlayer], graphs: &[AnimationGraph], delta: MediaTime, alley: &mut crate::core::alley::Alley) -> Result<(), AnimationGraphPlayerError>

    Related: AnimationGraphPlayer, AnimationGraph, MediaTime, AnimationGraphPlayerError

    Advances every player by delta toward its latest request, then requests

    the clips they found missing. Each player plays the one of graphs it was created with.

    Players only read the pool while they evaluate, so large crowds spread over alley's lanes, each lane taking

    a balanced share of the players; small ones stay on the calling thread. Read each player's result with

    AnimationGraphPlayer::pose next. Returns the error of the first player rejected in this advance, such as a

    root motion node its canonical skeleton lacks, after advancing the others.

Trait Implementations

impl ArchivePointee for AnimationPool
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationPool
impl Downcast for AnimationPool
  • 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 AnimationPool
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for AnimationPool
impl LayoutRaw for AnimationPool
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationPool
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointee for AnimationPool
  • type Metadata = ()
impl Read for AnimationPool
impl WithSubscriber for AnimationPool

LookChainSettings<'a>

struct LookChainSettings<'a> {
    pub nodes: &'a [(&'a str, f32)],
    pub body_node: &'a str,
    pub yaw_limit: f32,
    pub up_limit: f32,
    pub down_limit: f32,
    pub response: Option<f32>,
}

Defined in crates/byte-engine/src/animation/graph/runtime/player/look.rs:17-32

The LookChainSettings struct names the nodes a player turns toward its look target, from a spine to the head, and how far and how fast they turn.

Give them to AnimationGraphPlayer::with_look_chain, then set where to look each frame with AnimationGraphPlayer::set_look.

Fields

  • nodes: &'a [(&'a str, f32)]

    The chain's nodes from its base to its end, each with its share of the turn. Each node must exist once in the canonical skeleton and descend from the node before it; the shares normalize by their sum.

  • body_node: &'a str

    The node whose animated yaw centers the yaw limit, such as the hips, so a clip that turns the body carries the look with it.

  • yaw_limit: f32

    How far the chain turns from the body node's yaw, in radians, up to π.

  • up_limit: f32

    How far the chain looks up, in radians, up to π/2.

  • down_limit: f32

    How far the chain looks down, in radians, up to π/2.

  • response: Option<f32>

    How quickly the chain follows the target, per second, or none to follow it at once.

Trait Implementations

impl ArchivePointee for LookChainSettings<'a>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for LookChainSettings<'a>
impl Clone for LookChainSettings<'a>
impl Copy for LookChainSettings<'a>
impl Debug for LookChainSettings<'a>
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for LookChainSettings<'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 LookChainSettings<'a>
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for LookChainSettings<'a>
impl LayoutRaw for LookChainSettings<'a>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for LookChainSettings<'a>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for LookChainSettings<'a>
impl Pointee for LookChainSettings<'a>
  • type Metadata = ()
impl Read for LookChainSettings<'a>
impl StructuralPartialEq for LookChainSettings<'a>
impl WithSubscriber for LookChainSettings<'a>

LookTarget

struct LookTarget {
    pub yaw: f32,
    pub pitch: f32,
    pub turned: f32,
}

Defined in crates/byte-engine/src/animation/graph/runtime/player/look.rs:38-44

The LookTarget struct is where a player's look chain turns toward, in the entity's object space.

Yaw turns about +Y and pitch about +X, by the right-hand rule. The object faces -Z, so a positive pitch looks up.

Fields

  • turned: f32

    How far the entity turned about +Y since the last step. The eased yaw turns the other way by this much before it eases, so the chain holds its direction in the world when the entity takes over a turn clip's rotation.

Implementations

  • const fn new(yaw: f32, pitch: f32) -> Self

    Looks along yaw and pitch in the entity's object space.

  • const fn turned_by(self, turned: f32) -> Self

    Tells the chain the entity turned by turned about +Y since the last step, so it holds its direction in the

    world across the turn.

Trait Implementations

impl ArchivePointee for LookTarget
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for LookTarget
impl Clone for LookTarget
  • fn clone(&self) -> LookTarget

    Related: LookTarget

impl Copy for LookTarget
impl Debug for LookTarget
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for LookTarget
  • 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 LookTarget
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Instrument for LookTarget
impl LayoutRaw for LookTarget
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for LookTarget
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for LookTarget
  • fn eq(&self, other: &LookTarget) -> bool

    Related: LookTarget

impl Pointee for LookTarget
  • type Metadata = ()
impl Read for LookTarget
impl StructuralPartialEq for LookTarget
impl WithSubscriber for LookTarget

RootMotionSettings<'a>

struct RootMotionSettings<'a> {
    pub node_name: &'a str,
    pub translation: RootMotionTranslation,
    pub rotation: RootMotionRotation,
}

Defined in crates/byte-engine/src/animation/graph/runtime/player.rs:359-366

The RootMotionSettings struct defines which motion a canonical-skeleton node contributes to its owning object.

Fields

  • node_name: &'a str

    Names the unique node that contains the authored motion.

  • translation: RootMotionTranslation

    Selects node-local translation axes to extract.

  • rotation: RootMotionRotation

    Selects whether to extract node-local rotation.

Implementations

  • const fn full(node_name: &'a str) -> Self

    Selects all translation and rotation from a dedicated authored root node.

Trait Implementations

impl ArchivePointee for RootMotionSettings<'a>
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for RootMotionSettings<'a>
impl Clone for RootMotionSettings<'a>
impl Copy for RootMotionSettings<'a>
impl Debug for RootMotionSettings<'a>
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for RootMotionSettings<'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 RootMotionSettings<'a>
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for RootMotionSettings<'a>
impl<K> Equivalent for RootMotionSettings<'a>
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for RootMotionSettings<'a>
impl LayoutRaw for RootMotionSettings<'a>
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for RootMotionSettings<'a>
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for RootMotionSettings<'a>
impl Pointee for RootMotionSettings<'a>
  • type Metadata = ()
impl Read for RootMotionSettings<'a>
impl StructuralPartialEq for RootMotionSettings<'a>
impl WithSubscriber for RootMotionSettings<'a>

RootMotionTranslation

struct RootMotionTranslation();

Defined in crates/byte-engine/src/animation/graph/runtime/player.rs:318

The RootMotionTranslation struct selects node-local translation axes for root motion.

Implementations

  • const NONE: Self
  • const X: Self
  • const Y: Self
  • const Z: Self
  • const XYZ: Self
  • const fn union(self, other: Self) -> Self

    Combines translation axes for clips that move along more than one local axis.

Trait Implementations

impl ArchivePointee for RootMotionTranslation
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for RootMotionTranslation
impl Clone for RootMotionTranslation
impl Copy for RootMotionTranslation
impl Debug for RootMotionTranslation
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for RootMotionTranslation
  • 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 RootMotionTranslation
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for RootMotionTranslation
impl<K> Equivalent for RootMotionTranslation
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for RootMotionTranslation
impl LayoutRaw for RootMotionTranslation
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for RootMotionTranslation
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for RootMotionTranslation
impl Pointee for RootMotionTranslation
  • type Metadata = ()
impl Read for RootMotionTranslation
impl StructuralPartialEq for RootMotionTranslation
impl WithSubscriber for RootMotionTranslation

Enums

AnimationPlayback

enum AnimationPlayback {
    Loop,
    Once,
}

Defined in crates/byte-engine/src/animation/graph.rs:64-69

The AnimationPlayback enum selects whether a state clip repeats or stops at its final pose.

Variants

  • Loop

    Restarts the clip from its first sample after it reaches its duration.

  • Once

    Holds the clip's final sample after it reaches its duration.

Trait Implementations

impl ArchivePointee for AnimationPlayback
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationPlayback
impl Clone for AnimationPlayback
impl Copy for AnimationPlayback
impl Debug for AnimationPlayback
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationPlayback
  • 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 AnimationPlayback
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationPlayback
impl<K> Equivalent for AnimationPlayback
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for AnimationPlayback
impl LayoutRaw for AnimationPlayback
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationPlayback
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationPlayback
impl Pointee for AnimationPlayback
  • type Metadata = ()
impl Read for AnimationPlayback
impl StructuralPartialEq for AnimationPlayback
impl WithSubscriber for AnimationPlayback

AnimationGraphBuildError

enum AnimationGraphBuildError {
    InitialStateOutOfRange {
        state: usize,
        state_count: usize,
    },
    EmptyStateName {
        state: usize,
    },
    EmptyResourceId {
        state: usize,
    },
    DuplicateStateName {
        name: String,
    },
    EmptySpaceName {
        space: usize,
    },
    DuplicateSpaceName {
        name: String,
    },
    SpaceKindMismatch {
        state: usize,
    },
    BlendOutsideSpace {
        state: usize,
    },
    TransitionSourceOutOfRange {
        state: usize,
        state_count: usize,
    },
    TransitionTargetOutOfRange {
        state: usize,
        state_count: usize,
    },
    TransitionStateMustPlayOnce {
        state: usize,
    },
    TransitionStateCompletionOutOfRange {
        state: usize,
        completion: usize,
        state_count: usize,
    },
    NegativeTransitionDuration,
    InvalidBlend {
        state: usize,
        error: super::blend::BlendSpaceError,
    },
    MixedBlendPlayback {
        state: usize,
    },
    EmptyRoundRobin {
        state: usize,
    },
    RoutePointClipMissing {
        state: usize,
        clip: String,
    },
    RoutePointNeedsClip {
        state: usize,
    },
}

Defined in crates/byte-engine/src/animation/graph.rs:1136-1239

The AnimationGraphBuildError enum reports invalid graph authoring input.

Variants

  • InitialStateOutOfRange

    The selected initial state is outside the graph being built.

  • EmptyStateName

    A state cannot be identified because its name is empty.

  • EmptyResourceId

    A state cannot load its clip because its resource ID is empty.

  • DuplicateStateName

    A state name cannot identify one state because another state uses it.

  • EmptySpaceName

    A space cannot be identified because its name is empty.

  • DuplicateSpaceName

    A space name cannot identify one space because another space uses it.

  • SpaceKindMismatch

    A blend state cannot weigh its clips at its space's position because the two are of different kinds.

  • BlendOutsideSpace

    A one-shot blend has no position to weigh its clips at because neither end of its route is in a space of its kind.

  • TransitionSourceOutOfRange

    A transition cannot start because its source is outside the graph.

  • TransitionTargetOutOfRange

    A transition cannot complete because its target is outside the graph.

  • TransitionStateMustPlayOnce

    A transition state cannot complete because its clip uses looping playback.

  • TransitionStateCompletionOutOfRange

    A transition state cannot complete because its completion state is outside the graph.

  • NegativeTransitionDuration

    A transition cannot be built with a duration before MediaTime::ZERO.

  • InvalidBlend

    A blend state cannot weigh its clips because their positions are invalid.

  • MixedBlendPlayback

    A blend or round-robin state cannot keep its clips in step because some loop and others play once.

  • EmptyRoundRobin

    A round-robin state has no clip to play.

  • RoutePointClipMissing

    A route point names a clip that its state does not play.

  • RoutePointNeedsClip

    A route point does not say which clip it counts frames of, but its state plays several.

Trait Implementations

impl ArchivePointee for AnimationGraphBuildError
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphBuildError
impl Clone for AnimationGraphBuildError
impl Debug for AnimationGraphBuildError
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Display for AnimationGraphBuildError
  • fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationGraphBuildError
  • 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 AnimationGraphBuildError
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationGraphBuildError
impl<K> Equivalent for AnimationGraphBuildError
  • fn equivalent(&self, key: &K) -> bool
impl Error for AnimationGraphBuildError
impl Instrument for AnimationGraphBuildError
impl LayoutRaw for AnimationGraphBuildError
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphBuildError
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationGraphBuildError
impl Pointee for AnimationGraphBuildError
  • type Metadata = ()
impl Read for AnimationGraphBuildError
impl StructuralPartialEq for AnimationGraphBuildError
impl ToString for AnimationGraphBuildError
  • fn to_string(&self) -> String
impl WithSubscriber for AnimationGraphBuildError

AnimationGraphPlayerError

enum AnimationGraphPlayerError {
    RootMotionNodeNotFound {
        name: String,
    },
    DuplicateRootMotionNodeName {
        name: String,
    },
    StateFromDifferentGraph,
    NegativeDelta,
    LookChainNodeNotFound {
        name: String,
    },
    DuplicateLookChainNodeName {
        name: String,
    },
    LookChainNodeNotDescendant {
        name: String,
    },
    LookChainSettingOutOfRange {
        setting: &'static str,
    },
}

Defined in crates/byte-engine/src/animation/graph/runtime/player.rs:1734-1769

The AnimationGraphPlayerError enum reports invalid player inputs.

Variants

  • RootMotionNodeNotFound

    Choose a root-motion node that exists in the canonical skeleton.

  • DuplicateRootMotionNodeName

    Choose a root-motion node name that is unique in the canonical skeleton.

  • StateFromDifferentGraph

    Request a state created by the same graph as this player.

  • NegativeDelta

    Pass a nonnegative frame duration to AnimationGraphPlayer::advance.

  • LookChainNodeNotFound

    Name look chain and body nodes that exist in the canonical skeleton.

  • DuplicateLookChainNodeName

    Name look chain and body nodes that are unique in the canonical skeleton.

  • LookChainNodeNotDescendant

    List the look chain's nodes from its base to its end, each a descendant of the one before.

  • LookChainSettingOutOfRange

    Give the look chain positive shares, limits within their range, and a positive response.

Trait Implementations

impl ArchivePointee for AnimationGraphPlayerError
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationGraphPlayerError
impl Clone for AnimationGraphPlayerError
impl Debug for AnimationGraphPlayerError
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Display for AnimationGraphPlayerError
  • fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationGraphPlayerError
  • 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 AnimationGraphPlayerError
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationGraphPlayerError
impl<K> Equivalent for AnimationGraphPlayerError
  • fn equivalent(&self, key: &K) -> bool
impl Error for AnimationGraphPlayerError
impl Instrument for AnimationGraphPlayerError
impl LayoutRaw for AnimationGraphPlayerError
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationGraphPlayerError
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationGraphPlayerError
impl Pointee for AnimationGraphPlayerError
  • type Metadata = ()
impl Read for AnimationGraphPlayerError
impl StructuralPartialEq for AnimationGraphPlayerError
impl ToString for AnimationGraphPlayerError
  • fn to_string(&self) -> String
impl WithSubscriber for AnimationGraphPlayerError

AnimationPoolEvent

enum AnimationPoolEvent {
    LoadFailed {
        resource_id: String,
        error: resource_management::RequestError,
    },
    Oversized {
        resource_id: String,
        resident_bytes: usize,
        byte_budget: usize,
    },
    Evicted {
        resource_id: String,
    },
}

Defined in crates/byte-engine/src/animation/graph/runtime.rs:54-76

The AnimationPoolEvent enum reports load outcomes that require application-level handling.

Variants

  • LoadFailed

    Handle a resource that could not be loaded.

  • Oversized

    Increase the pool budget or use a smaller animation resource.

  • Evicted

    Request the resource again before its next use.

Trait Implementations

impl ArchivePointee for AnimationPoolEvent
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationPoolEvent
impl Clone for AnimationPoolEvent
impl Debug for AnimationPoolEvent
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationPoolEvent
  • 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 AnimationPoolEvent
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationPoolEvent
impl<K> Equivalent for AnimationPoolEvent
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for AnimationPoolEvent
impl LayoutRaw for AnimationPoolEvent
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationPoolEvent
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationPoolEvent
impl Pointee for AnimationPoolEvent
  • type Metadata = ()
impl Read for AnimationPoolEvent
impl StructuralPartialEq for AnimationPoolEvent
impl WithSubscriber for AnimationPoolEvent

AnimationPoolRequest

enum AnimationPoolRequest {
    Ready,
    Loading,
    WaitingForCapacity,
    Failed,
}

Defined in crates/byte-engine/src/animation/graph/runtime.rs:41-50

The AnimationPoolRequest enum reports whether a clip can be sampled immediately.

Variants

  • Ready

    The clip is resident, so players sample it.

  • Loading

    Wait while the requested clip loads asynchronously.

  • WaitingForCapacity

    Retry when loading or residency capacity becomes available.

  • Failed

    Handle the load failure or call AnimationPool::retry.

Trait Implementations

impl ArchivePointee for AnimationPoolRequest
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for AnimationPoolRequest
impl Clone for AnimationPoolRequest
impl Copy for AnimationPoolRequest
impl Debug for AnimationPoolRequest
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for AnimationPoolRequest
  • 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 AnimationPoolRequest
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for AnimationPoolRequest
impl<K> Equivalent for AnimationPoolRequest
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for AnimationPoolRequest
impl LayoutRaw for AnimationPoolRequest
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for AnimationPoolRequest
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for AnimationPoolRequest
impl Pointee for AnimationPoolRequest
  • type Metadata = ()
impl Read for AnimationPoolRequest
impl StructuralPartialEq for AnimationPoolRequest
impl WithSubscriber for AnimationPoolRequest

RootMotionRotation

enum RootMotionRotation {
    None,
    Full,
}

Defined in crates/byte-engine/src/animation/graph/runtime/player.rs:350-355

The RootMotionRotation enum selects whether node-local rotation drives the owning object.

Variants

  • None

    Keeps rotation in the visual pose.

  • Full

    Extracts the node's full rotation.

Trait Implementations

impl ArchivePointee for RootMotionRotation
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for RootMotionRotation
impl Clone for RootMotionRotation
impl Copy for RootMotionRotation
impl Debug for RootMotionRotation
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Downcast for RootMotionRotation
  • 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 RootMotionRotation
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
impl Eq for RootMotionRotation
impl<K> Equivalent for RootMotionRotation
  • fn equivalent(&self, key: &K) -> bool
impl Instrument for RootMotionRotation
impl LayoutRaw for RootMotionRotation
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for RootMotionRotation
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl PartialEq for RootMotionRotation
impl Pointee for RootMotionRotation
  • type Metadata = ()
impl Read for RootMotionRotation
impl StructuralPartialEq for RootMotionRotation
impl WithSubscriber for RootMotionRotation

Constants

ANIMATION_LOAD_QUEUE_CAPACITY

const ANIMATION_LOAD_QUEUE_CAPACITY: usize = 64usize;

Defined in crates/byte-engine/src/animation/graph.rs:50

Bounds asynchronous animation load requests independently from the clip byte budget.

ANIMATION_POOL_EVENT_CAPACITY

const ANIMATION_POOL_EVENT_CAPACITY: usize = 64usize;

Defined in crates/byte-engine/src/animation/graph.rs:53

Bounds retained load outcomes so diagnostics cannot outgrow the clip pool.

On this page

Module graphConnection orderContentsQuick ReferenceStructsAnimationStateIdTrait Implementationsimpl ArchivePointee for AnimationStateIdimpl<ST> CastableFrom for AnimationStateIdimpl Clone for AnimationStateIdimpl Copy for AnimationStateIdimpl Debug for AnimationStateIdimpl Downcast for AnimationStateIdimpl DowncastSync for AnimationStateIdimpl Eq for AnimationStateIdimpl<K> Equivalent for AnimationStateIdimpl Hash for AnimationStateIdimpl Instrument for AnimationStateIdimpl LayoutRaw for AnimationStateIdimpl<T, N1> Niching for AnimationStateIdimpl PartialEq for AnimationStateIdimpl Pointee for AnimationStateIdimpl Read for AnimationStateIdimpl StructuralPartialEq for AnimationStateIdimpl WithSubscriber for AnimationStateIdAnimationClipImplementationsTrait Implementationsimpl ArchivePointee for AnimationClipimpl<ST> CastableFrom for AnimationClipimpl Clone for AnimationClipimpl Debug for AnimationClipimpl Downcast for AnimationClipimpl DowncastSync for AnimationClipimpl Eq for AnimationClipimpl<K> Equivalent for AnimationClipimpl Instrument for AnimationClipimpl LayoutRaw for AnimationClipimpl<T, N1> Niching for AnimationClipimpl PartialEq for AnimationClipimpl Pointee for AnimationClipimpl Read for AnimationClipimpl StructuralPartialEq for AnimationClipimpl WithSubscriber for AnimationClipAnimationGraphImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphimpl<ST> CastableFrom for AnimationGraphimpl Downcast for AnimationGraphimpl DowncastSync for AnimationGraphimpl Instrument for AnimationGraphimpl LayoutRaw for AnimationGraphimpl<T, N1> Niching for AnimationGraphimpl Pointee for AnimationGraphimpl Read for AnimationGraphimpl WithSubscriber for AnimationGraphAnimationGraphBuilderImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphBuilderimpl<ST> CastableFrom for AnimationGraphBuilderimpl Downcast for AnimationGraphBuilderimpl Instrument for AnimationGraphBuilderimpl LayoutRaw for AnimationGraphBuilderimpl<T, N1> Niching for AnimationGraphBuilderimpl Pointee for AnimationGraphBuilderimpl Read for AnimationGraphBuilderimpl WithSubscriber for AnimationGraphBuilderAnimationGraphStateBuilder<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphStateBuilder<'builder>impl<ST> CastableFrom for AnimationGraphStateBuilder<'builder>impl Downcast for AnimationGraphStateBuilder<'builder>impl Instrument for AnimationGraphStateBuilder<'builder>impl LayoutRaw for AnimationGraphStateBuilder<'builder>impl<T, N1> Niching for AnimationGraphStateBuilder<'builder>impl Pointee for AnimationGraphStateBuilder<'builder>impl Read for AnimationGraphStateBuilder<'builder>impl WithSubscriber for AnimationGraphStateBuilder<'builder>AnimationGraphSpace<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphSpace<'builder>impl<ST> CastableFrom for AnimationGraphSpace<'builder>impl Clone for AnimationGraphSpace<'builder>impl Copy for AnimationGraphSpace<'builder>impl Downcast for AnimationGraphSpace<'builder>impl Instrument for AnimationGraphSpace<'builder>impl LayoutRaw for AnimationGraphSpace<'builder>impl<T, N1> Niching for AnimationGraphSpace<'builder>impl Pointee for AnimationGraphSpace<'builder>impl Read for AnimationGraphSpace<'builder>impl WithSubscriber for AnimationGraphSpace<'builder>AnimationGraphState<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphState<'builder>impl<ST> CastableFrom for AnimationGraphState<'builder>impl Clone for AnimationGraphState<'builder>impl Copy for AnimationGraphState<'builder>impl Downcast for AnimationGraphState<'builder>impl Instrument for AnimationGraphState<'builder>impl LayoutRaw for AnimationGraphState<'builder>impl<T, N1> Niching for AnimationGraphState<'builder>impl Pointee for AnimationGraphState<'builder>impl Read for AnimationGraphState<'builder>impl WithSubscriber for AnimationGraphState<'builder>AnimationGraphTransitionBuilder<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphTransitionBuilder<'builder>impl<ST> CastableFrom for AnimationGraphTransitionBuilder<'builder>impl Downcast for AnimationGraphTransitionBuilder<'builder>impl Instrument for AnimationGraphTransitionBuilder<'builder>impl LayoutRaw for AnimationGraphTransitionBuilder<'builder>impl<T, N1> Niching for AnimationGraphTransitionBuilder<'builder>impl Pointee for AnimationGraphTransitionBuilder<'builder>impl Read for AnimationGraphTransitionBuilder<'builder>impl WithSubscriber for AnimationGraphTransitionBuilder<'builder>AnimationGraphTransitionConditionBuilder<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphTransitionConditionBuilder<'builder>impl<ST> CastableFrom for AnimationGraphTransitionConditionBuilder<'builder>impl Downcast for AnimationGraphTransitionConditionBuilder<'builder>impl Instrument for AnimationGraphTransitionConditionBuilder<'builder>impl LayoutRaw for AnimationGraphTransitionConditionBuilder<'builder>impl<T, N1> Niching for AnimationGraphTransitionConditionBuilder<'builder>impl Pointee for AnimationGraphTransitionConditionBuilder<'builder>impl Read for AnimationGraphTransitionConditionBuilder<'builder>impl WithSubscriber for AnimationGraphTransitionConditionBuilder<'builder>AnimationBlend<P>ImplementationsTrait Implementationsimpl ArchivePointee for AnimationBlend<P>impl<ST> CastableFrom for AnimationBlend<P>impl<P> Default for AnimationBlend<P>impl Downcast for AnimationBlend<P>impl DowncastSync for AnimationBlend<P>impl Instrument for AnimationBlend<P>impl LayoutRaw for AnimationBlend<P>impl<T, N1> Niching for AnimationBlend<P>impl Pointee for AnimationBlend<P>impl Read for AnimationBlend<P>impl<R, P> ReadPrimitive for AnimationBlend<P>impl WithSubscriber for AnimationBlend<P>AnimationMotionTrait Implementationsimpl ArchivePointee for AnimationMotionimpl<ST> CastableFrom for AnimationMotionimpl Downcast for AnimationMotionimpl DowncastSync for AnimationMotionimpl Instrument for AnimationMotionimpl LayoutRaw for AnimationMotionimpl<T, N1> Niching for AnimationMotionimpl Pointee for AnimationMotionimpl Read for AnimationMotionimpl WithSubscriber for AnimationMotionAnimationRequestImplementationsTrait Implementationsimpl ArchivePointee for AnimationRequestimpl<ST> CastableFrom for AnimationRequestimpl Clone for AnimationRequestimpl Copy for AnimationRequestimpl Debug for AnimationRequestimpl Downcast for AnimationRequestimpl DowncastSync for AnimationRequestimpl Instrument for AnimationRequestimpl LayoutRaw for AnimationRequestimpl<T, N1> Niching for AnimationRequestimpl PartialEq for AnimationRequestimpl Pointee for AnimationRequestimpl Read for AnimationRequestimpl StructuralPartialEq for AnimationRequestimpl WithSubscriber for AnimationRequestLinearGraphState<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for LinearGraphState<'builder>impl<ST> CastableFrom for LinearGraphState<'builder>impl Clone for LinearGraphState<'builder>impl Copy for LinearGraphState<'builder>impl Deref for LinearGraphState<'builder>impl Downcast for LinearGraphState<'builder>impl Instrument for LinearGraphState<'builder>impl LayoutRaw for LinearGraphState<'builder>impl<T, N1> Niching for LinearGraphState<'builder>impl Pointee for LinearGraphState<'builder>impl Read for LinearGraphState<'builder>impl Receiver for LinearGraphState<'builder>impl WithSubscriber for LinearGraphState<'builder>LinearStateIdImplementationsTrait Implementationsimpl ArchivePointee for LinearStateIdimpl<ST> CastableFrom for LinearStateIdimpl Clone for LinearStateIdimpl Copy for LinearStateIdimpl Debug for LinearStateIdimpl Downcast for LinearStateIdimpl DowncastSync for LinearStateIdimpl Eq for LinearStateIdimpl<K> Equivalent for LinearStateIdimpl Hash for LinearStateIdimpl Instrument for LinearStateIdimpl LayoutRaw for LinearStateIdimpl<T, N1> Niching for LinearStateIdimpl PartialEq for LinearStateIdimpl Pointee for LinearStateIdimpl Read for LinearStateIdimpl StructuralPartialEq for LinearStateIdimpl WithSubscriber for LinearStateIdPlanarGraphState<'builder>ImplementationsTrait Implementationsimpl ArchivePointee for PlanarGraphState<'builder>impl<ST> CastableFrom for PlanarGraphState<'builder>impl Clone for PlanarGraphState<'builder>impl Copy for PlanarGraphState<'builder>impl Deref for PlanarGraphState<'builder>impl Downcast for PlanarGraphState<'builder>impl Instrument for PlanarGraphState<'builder>impl LayoutRaw for PlanarGraphState<'builder>impl<T, N1> Niching for PlanarGraphState<'builder>impl Pointee for PlanarGraphState<'builder>impl Read for PlanarGraphState<'builder>impl Receiver for PlanarGraphState<'builder>impl WithSubscriber for PlanarGraphState<'builder>PlanarStateIdImplementationsTrait Implementationsimpl ArchivePointee for PlanarStateIdimpl<ST> CastableFrom for PlanarStateIdimpl Clone for PlanarStateIdimpl Copy for PlanarStateIdimpl Debug for PlanarStateIdimpl Downcast for PlanarStateIdimpl DowncastSync for PlanarStateIdimpl Eq for PlanarStateIdimpl<K> Equivalent for PlanarStateIdimpl Hash for PlanarStateIdimpl Instrument for PlanarStateIdimpl LayoutRaw for PlanarStateIdimpl<T, N1> Niching for PlanarStateIdimpl PartialEq for PlanarStateIdimpl Pointee for PlanarStateIdimpl Read for PlanarStateIdimpl StructuralPartialEq for PlanarStateIdimpl WithSubscriber for PlanarStateIdAnimationGraphPlayerImplementationsTrait Implementationsimpl ArchivePointee for AnimationGraphPlayerimpl<ST> CastableFrom for AnimationGraphPlayerimpl Downcast for AnimationGraphPlayerimpl DowncastSync for AnimationGraphPlayerimpl Instrument for AnimationGraphPlayerimpl LayoutRaw for AnimationGraphPlayerimpl<T, N1> Niching for AnimationGraphPlayerimpl Pointee for AnimationGraphPlayerimpl Read for AnimationGraphPlayerimpl WithSubscriber for AnimationGraphPlayerAnimationGraphPose<'a>FieldsTrait Implementationsimpl ArchivePointee for AnimationGraphPose<'a>impl<ST> CastableFrom for AnimationGraphPose<'a>impl Downcast for AnimationGraphPose<'a>impl DowncastSync for AnimationGraphPose<'a>impl Instrument for AnimationGraphPose<'a>impl LayoutRaw for AnimationGraphPose<'a>impl<T, N1> Niching for AnimationGraphPose<'a>impl Pointee for AnimationGraphPose<'a>impl Read for AnimationGraphPose<'a>impl WithSubscriber for AnimationGraphPose<'a>AnimationLoadWorkerImplementationsTrait Implementationsimpl ArchivePointee for AnimationLoadWorkerimpl<ST> CastableFrom for AnimationLoadWorkerimpl Downcast for AnimationLoadWorkerimpl DowncastSync for AnimationLoadWorkerimpl Instrument for AnimationLoadWorkerimpl LayoutRaw for AnimationLoadWorkerimpl<T, N1> Niching for AnimationLoadWorkerimpl Pointee for AnimationLoadWorkerimpl Read for AnimationLoadWorkerimpl WithSubscriber for AnimationLoadWorkerAnimationPoolImplementationsTrait Implementationsimpl ArchivePointee for AnimationPoolimpl<ST> CastableFrom for AnimationPoolimpl Downcast for AnimationPoolimpl DowncastSync for AnimationPoolimpl Instrument for AnimationPoolimpl LayoutRaw for AnimationPoolimpl<T, N1> Niching for AnimationPoolimpl Pointee for AnimationPoolimpl Read for AnimationPoolimpl WithSubscriber for AnimationPoolLookChainSettings<'a>FieldsTrait Implementationsimpl ArchivePointee for LookChainSettings<'a>impl<ST> CastableFrom for LookChainSettings<'a>impl Clone for LookChainSettings<'a>impl Copy for LookChainSettings<'a>impl Debug for LookChainSettings<'a>impl Downcast for LookChainSettings<'a>impl DowncastSync for LookChainSettings<'a>impl Instrument for LookChainSettings<'a>impl LayoutRaw for LookChainSettings<'a>impl<T, N1> Niching for LookChainSettings<'a>impl PartialEq for LookChainSettings<'a>impl Pointee for LookChainSettings<'a>impl Read for LookChainSettings<'a>impl StructuralPartialEq for LookChainSettings<'a>impl WithSubscriber for LookChainSettings<'a>LookTargetFieldsImplementationsTrait Implementationsimpl ArchivePointee for LookTargetimpl<ST> CastableFrom for LookTargetimpl Clone for LookTargetimpl Copy for LookTargetimpl Debug for LookTargetimpl Downcast for LookTargetimpl DowncastSync for LookTargetimpl Instrument for LookTargetimpl LayoutRaw for LookTargetimpl<T, N1> Niching for LookTargetimpl PartialEq for LookTargetimpl Pointee for LookTargetimpl Read for LookTargetimpl StructuralPartialEq for LookTargetimpl WithSubscriber for LookTargetRootMotionSettings<'a>FieldsImplementationsTrait Implementationsimpl ArchivePointee for RootMotionSettings<'a>impl<ST> CastableFrom for RootMotionSettings<'a>impl Clone for RootMotionSettings<'a>impl Copy for RootMotionSettings<'a>impl Debug for RootMotionSettings<'a>impl Downcast for RootMotionSettings<'a>impl DowncastSync for RootMotionSettings<'a>impl Eq for RootMotionSettings<'a>impl<K> Equivalent for RootMotionSettings<'a>impl Instrument for RootMotionSettings<'a>impl LayoutRaw for RootMotionSettings<'a>impl<T, N1> Niching for RootMotionSettings<'a>impl PartialEq for RootMotionSettings<'a>impl Pointee for RootMotionSettings<'a>impl Read for RootMotionSettings<'a>impl StructuralPartialEq for RootMotionSettings<'a>impl WithSubscriber for RootMotionSettings<'a>RootMotionTranslationImplementationsTrait Implementationsimpl ArchivePointee for RootMotionTranslationimpl<ST> CastableFrom for RootMotionTranslationimpl Clone for RootMotionTranslationimpl Copy for RootMotionTranslationimpl Debug for RootMotionTranslationimpl Downcast for RootMotionTranslationimpl DowncastSync for RootMotionTranslationimpl Eq for RootMotionTranslationimpl<K> Equivalent for RootMotionTranslationimpl Instrument for RootMotionTranslationimpl LayoutRaw for RootMotionTranslationimpl<T, N1> Niching for RootMotionTranslationimpl PartialEq for RootMotionTranslationimpl Pointee for RootMotionTranslationimpl Read for RootMotionTranslationimpl StructuralPartialEq for RootMotionTranslationimpl WithSubscriber for RootMotionTranslationEnumsAnimationPlaybackVariantsTrait Implementationsimpl ArchivePointee for AnimationPlaybackimpl<ST> CastableFrom for AnimationPlaybackimpl Clone for AnimationPlaybackimpl Copy for AnimationPlaybackimpl Debug for AnimationPlaybackimpl Downcast for AnimationPlaybackimpl DowncastSync for AnimationPlaybackimpl Eq for AnimationPlaybackimpl<K> Equivalent for AnimationPlaybackimpl Instrument for AnimationPlaybackimpl LayoutRaw for AnimationPlaybackimpl<T, N1> Niching for AnimationPlaybackimpl PartialEq for AnimationPlaybackimpl Pointee for AnimationPlaybackimpl Read for AnimationPlaybackimpl StructuralPartialEq for AnimationPlaybackimpl WithSubscriber for AnimationPlaybackAnimationGraphBuildErrorVariantsTrait Implementationsimpl ArchivePointee for AnimationGraphBuildErrorimpl<ST> CastableFrom for AnimationGraphBuildErrorimpl Clone for AnimationGraphBuildErrorimpl Debug for AnimationGraphBuildErrorimpl Display for AnimationGraphBuildErrorimpl Downcast for AnimationGraphBuildErrorimpl DowncastSync for AnimationGraphBuildErrorimpl Eq for AnimationGraphBuildErrorimpl<K> Equivalent for AnimationGraphBuildErrorimpl Error for AnimationGraphBuildErrorimpl Instrument for AnimationGraphBuildErrorimpl LayoutRaw for AnimationGraphBuildErrorimpl<T, N1> Niching for AnimationGraphBuildErrorimpl PartialEq for AnimationGraphBuildErrorimpl Pointee for AnimationGraphBuildErrorimpl Read for AnimationGraphBuildErrorimpl StructuralPartialEq for AnimationGraphBuildErrorimpl ToString for AnimationGraphBuildErrorimpl WithSubscriber for AnimationGraphBuildErrorAnimationGraphPlayerErrorVariantsTrait Implementationsimpl ArchivePointee for AnimationGraphPlayerErrorimpl<ST> CastableFrom for AnimationGraphPlayerErrorimpl Clone for AnimationGraphPlayerErrorimpl Debug for AnimationGraphPlayerErrorimpl Display for AnimationGraphPlayerErrorimpl Downcast for AnimationGraphPlayerErrorimpl DowncastSync for AnimationGraphPlayerErrorimpl Eq for AnimationGraphPlayerErrorimpl<K> Equivalent for AnimationGraphPlayerErrorimpl Error for AnimationGraphPlayerErrorimpl Instrument for AnimationGraphPlayerErrorimpl LayoutRaw for AnimationGraphPlayerErrorimpl<T, N1> Niching for AnimationGraphPlayerErrorimpl PartialEq for AnimationGraphPlayerErrorimpl Pointee for AnimationGraphPlayerErrorimpl Read for AnimationGraphPlayerErrorimpl StructuralPartialEq for AnimationGraphPlayerErrorimpl ToString for AnimationGraphPlayerErrorimpl WithSubscriber for AnimationGraphPlayerErrorAnimationPoolEventVariantsTrait Implementationsimpl ArchivePointee for AnimationPoolEventimpl<ST> CastableFrom for AnimationPoolEventimpl Clone for AnimationPoolEventimpl Debug for AnimationPoolEventimpl Downcast for AnimationPoolEventimpl DowncastSync for AnimationPoolEventimpl Eq for AnimationPoolEventimpl<K> Equivalent for AnimationPoolEventimpl Instrument for AnimationPoolEventimpl LayoutRaw for AnimationPoolEventimpl<T, N1> Niching for AnimationPoolEventimpl PartialEq for AnimationPoolEventimpl Pointee for AnimationPoolEventimpl Read for AnimationPoolEventimpl StructuralPartialEq for AnimationPoolEventimpl WithSubscriber for AnimationPoolEventAnimationPoolRequestVariantsTrait Implementationsimpl ArchivePointee for AnimationPoolRequestimpl<ST> CastableFrom for AnimationPoolRequestimpl Clone for AnimationPoolRequestimpl Copy for AnimationPoolRequestimpl Debug for AnimationPoolRequestimpl Downcast for AnimationPoolRequestimpl DowncastSync for AnimationPoolRequestimpl Eq for AnimationPoolRequestimpl<K> Equivalent for AnimationPoolRequestimpl Instrument for AnimationPoolRequestimpl LayoutRaw for AnimationPoolRequestimpl<T, N1> Niching for AnimationPoolRequestimpl PartialEq for AnimationPoolRequestimpl Pointee for AnimationPoolRequestimpl Read for AnimationPoolRequestimpl StructuralPartialEq for AnimationPoolRequestimpl WithSubscriber for AnimationPoolRequestRootMotionRotationVariantsTrait Implementationsimpl ArchivePointee for RootMotionRotationimpl<ST> CastableFrom for RootMotionRotationimpl Clone for RootMotionRotationimpl Copy for RootMotionRotationimpl Debug for RootMotionRotationimpl Downcast for RootMotionRotationimpl DowncastSync for RootMotionRotationimpl Eq for RootMotionRotationimpl<K> Equivalent for RootMotionRotationimpl Instrument for RootMotionRotationimpl LayoutRaw for RootMotionRotationimpl<T, N1> Niching for RootMotionRotationimpl PartialEq for RootMotionRotationimpl Pointee for RootMotionRotationimpl Read for RootMotionRotationimpl StructuralPartialEq for RootMotionRotationimpl WithSubscriber for RootMotionRotationConstantsANIMATION_LOAD_QUEUE_CAPACITYANIMATION_POOL_EVENT_CAPACITY