pub struct ShaderParameter {
pub id: ShortString,
pub description: String,
pub initial: f32,
pub minimum: f32,
pub maximum: f32,
pub step: f32,
}
Expand description
A user tweakable parameter for the shader as declared in source.
Fields§
§id: ShortString
The name of the parameter.
description: String
The description of the parameter.
initial: f32
The initial value the parameter is set to.
minimum: f32
The minimum value that the parameter can be set to.
maximum: f32
The maximum value that the parameter can be set to.
step: f32
The step by which this parameter can be incremented or decremented.
Trait 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 moreSource§impl Debug for ShaderParameter
impl Debug for ShaderParameter
Source§impl PartialEq for ShaderParameter
impl PartialEq for ShaderParameter
impl StructuralPartialEq for ShaderParameter
Auto Trait Implementations§
impl Freeze for ShaderParameter
impl RefUnwindSafe for ShaderParameter
impl Send for ShaderParameter
impl Sync for ShaderParameter
impl Unpin 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