Struct librashader_preprocess::ShaderParameter
source · pub struct ShaderParameter {
pub id: String,
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: String
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 copy 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<ShaderParameter> for ShaderParameter
impl PartialEq<ShaderParameter> for ShaderParameter
source§fn eq(&self, other: &ShaderParameter) -> bool
fn eq(&self, other: &ShaderParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ShaderParameter
Auto Trait Implementations§
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