pub enum ParamType {
Float,
Vec2,
Vec4,
Color,
Enum,
Bool,
}Expand description
Host-side parameter representation.
Variants§
Float
One 32-bit floating-point value.
Vec2
Two 32-bit floating-point values.
Vec4
Four independent 32-bit floating-point values, such as per-channel thresholds. They keyframe component by component.
Color
A straight (not premultiplied), sRGB-encoded RGBA color in 0..=1.
Its unit is always ParamUnit::Color; a four-component value that
is not a color is a ParamType::Vec4.
Enum
Integer index into an author-defined option list.
Bool
Boolean encoded as a host-shareable u32 in WGSL.
Trait Implementations§
impl Copy for ParamType
impl Eq for ParamType
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.