pub struct EffectRuntime {
pub time: MediaTime,
pub progress: f32,
pub ratio: f32,
}Expand description
Per-invocation values supplied by the timeline runner.
Fields§
§time: MediaTimeExact time the pass’s settings are sampled at (timeline time, or composition time plus step offset).
Zero for effects that cannot read it (crate::Renderer::effect_reads_time) and for
time-invariant passes. time() returns seconds as f32, which loses frame precision after
about 73 hours; time_ticks() is exact. The cache key uses ticks.
progress: f32Transition progress in the inclusive unit interval.
ratio: f32Output width divided by output height.
Trait Implementations§
Source§impl Clone for EffectRuntime
impl Clone for EffectRuntime
impl Copy for EffectRuntime
Source§impl Debug for EffectRuntime
impl Debug for EffectRuntime
Source§impl Default for EffectRuntime
impl Default for EffectRuntime
Source§impl PartialEq for EffectRuntime
impl PartialEq for EffectRuntime
impl StructuralPartialEq for EffectRuntime
Auto Trait Implementations§
impl Freeze for EffectRuntime
impl RefUnwindSafe for EffectRuntime
impl Send for EffectRuntime
impl Sync for EffectRuntime
impl Unpin for EffectRuntime
impl UnsafeUnpin for EffectRuntime
impl UnwindSafe for EffectRuntime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more