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: ShortStringThe name of the parameter.
description: StringThe description of the parameter.
initial: f32The initial value the parameter is set to.
minimum: f32The minimum value that the parameter can be set to.
maximum: f32The maximum value that the parameter can be set to.
step: f32The 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)