pub struct ShaderParameter {
pub name: String,
pub glsl_name: String,
pub value: ParameterValue,
pub driver: Option<MathFunction>,
pub min: f32,
pub max: f32,
}Expand description
A runtime-controllable parameter bound to a GLSL uniform.
Fields§
§name: String§glsl_name: String§value: ParameterValue§driver: Option<MathFunction>Optional MathFunction driving this parameter over time.
min: f32§max: f32Trait Implementations§
Source§impl Clone for ShaderParameter
impl Clone for ShaderParameter
Source§fn clone(&self) -> ShaderParameter
fn clone(&self) -> ShaderParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShaderParameter
impl RefUnwindSafe for ShaderParameter
impl Send for ShaderParameter
impl Sync for ShaderParameter
impl Unpin for ShaderParameter
impl UnsafeUnpin for ShaderParameter
impl UnwindSafe for ShaderParameter
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