pub struct TransformCache { /* private fields */ }Expand description
Reused scratch plus change-tracking for the per-frame transform propagation.
A caller owns one and passes it to propagate_transforms_cached each
frame: every buffer is refilled in place (no per-frame allocation once they
reach steady-state capacity), propagation is skipped entirely on frames where
neither the Transform nor the Parent column changed since the last recompute,
and on frames where only some Transforms were written only those entities’
subtrees are recomposed.
Trait Implementations§
Source§impl Default for TransformCache
impl Default for TransformCache
Source§fn default() -> TransformCache
fn default() -> TransformCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransformCache
impl RefUnwindSafe for TransformCache
impl Send for TransformCache
impl Sync for TransformCache
impl Unpin for TransformCache
impl UnsafeUnpin for TransformCache
impl UnwindSafe for TransformCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more