pub struct ShaderParam {
pub name: String,
pub data_type: ParamType,
pub widget: WidgetConfig,
}Expand description
§========================================================================== Shader Parameter Definition
Shader parameter definition Combines data type with UI widget for a complete parameter specification
Fields§
§name: StringParameter name (must match WGSL struct field name)
data_type: ParamTypeData type (strongly typed, no string parsing)
widget: WidgetConfigUI widget for editing
Trait Implementations§
Source§impl Clone for ShaderParam
impl Clone for ShaderParam
Source§fn clone(&self) -> ShaderParam
fn clone(&self) -> ShaderParam
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 ShaderParam
impl RefUnwindSafe for ShaderParam
impl Send for ShaderParam
impl Sync for ShaderParam
impl Unpin for ShaderParam
impl UnwindSafe for ShaderParam
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