pub struct EffectRuntime {
pub time: MediaTime,
pub progress: f32,
pub ratio: f32,
}Expand description
Per-invocation values supplied by the timeline runner.
Fields§
§time: MediaTimeThe time the pass’s settings are sampled at, exact in ticks: the
timeline time for a timeline transition, and for a composition step
the composition time it is sampled at (the composition’s time plus
the step’s offset). The engine passes zero to an effect that cannot
read it (crate::Renderer::effect_reads_time) and to a pass whose
picture does not change with time. A shader reads it as seconds with
time(), an f32 that cannot tell frames apart on a long timeline
(1/32 s apart from about 73 hours on), and exactly with
time_ticks(); the cache key holds the 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