#[repr(C)]pub struct Uniforms {Show 15 fields
pub time: f32,
pub progress: f32,
pub effect_type: u32,
pub padding: u32,
pub resolution: [f32; 2],
pub image_resolution: [f32; 2],
pub old_image_resolution: [f32; 2],
pub param_a: f32,
pub param_b: f32,
pub param_c: f32,
pub param_d: f32,
pub origin: [f32; 2],
pub direction: [f32; 2],
pub easing: u32,
pub padding2: u32,
}Fields§
§time: f32§progress: f32§effect_type: u32§padding: u32§resolution: [f32; 2]§image_resolution: [f32; 2]§old_image_resolution: [f32; 2]§param_a: f32§param_b: f32§param_c: f32§param_d: f32§origin: [f32; 2]§direction: [f32; 2]§easing: u32§padding2: u32Implementations§
Source§impl Uniforms
impl Uniforms
pub fn from_effect(effect: &EffectUniforms) -> Self
Trait Implementations§
impl Copy for Uniforms
impl Pod for Uniforms
Auto Trait Implementations§
impl Freeze for Uniforms
impl RefUnwindSafe for Uniforms
impl Send for Uniforms
impl Sync for Uniforms
impl Unpin for Uniforms
impl UnsafeUnpin for Uniforms
impl UnwindSafe for Uniforms
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.