pub enum NodeSpec {
Show 13 variants
Constant {
params: ConstantParams,
},
Texture {
params: TextureParams,
},
Add {
inputs: Vec<FieldId>,
},
Sub {
inputs: Vec<FieldId>,
},
Mul {
inputs: Vec<FieldId>,
},
Min {
inputs: Vec<FieldId>,
},
Max {
inputs: Vec<FieldId>,
},
Invert {
inputs: Vec<FieldId>,
},
Scale {
inputs: Vec<FieldId>,
params: ScaleParams,
},
Clamp {
inputs: Vec<FieldId>,
params: ClampParams,
},
SmoothStep {
inputs: Vec<FieldId>,
params: SmoothStepParams,
},
Pow {
inputs: Vec<FieldId>,
params: PowParams,
},
EdtNormalize {
inputs: Vec<FieldId>,
params: EdtNormalizeParams,
},
}Expand description
Specification of a node in the field graph.
Variants§
Constant
Fields
§
params: ConstantParamsConstant node parameters.
Texture
Fields
§
params: TextureParamsTexture sampling parameters.
Add
Sub
Mul
Min
Max
Invert
Scale
Fields
§
params: ScaleParamsScale operation parameters.
Clamp
Fields
§
params: ClampParamsClamp operation parameters.
SmoothStep
Fields
§
params: SmoothStepParamsSmoothstep operation parameters.
Pow
Fields
EdtNormalize
Fields
§
params: EdtNormalizeParamsEDT normalization parameters.
Implementations§
Source§impl NodeSpec
impl NodeSpec
Sourcepub fn texture(id: impl Into<String>, channel: TextureChannel) -> Self
pub fn texture(id: impl Into<String>, channel: TextureChannel) -> Self
Creates a new texture sampling node specification.
Sourcepub fn clamp(input: FieldId, min: f32, max: f32) -> Self
pub fn clamp(input: FieldId, min: f32, max: f32) -> Self
Creates a new clamping node specification.
Sourcepub fn smoothstep(input: FieldId, edge0: f32, edge1: f32) -> Self
pub fn smoothstep(input: FieldId, edge0: f32, edge1: f32) -> Self
Creates a new smoothstep node specification.
Sourcepub fn edt_normalize(input: FieldId, threshold: f32, d_max: f32) -> Self
pub fn edt_normalize(input: FieldId, threshold: f32, d_max: f32) -> Self
Creates a new EDT normalization node specification.
Trait Implementations§
Auto Trait Implementations§
impl Forget for NodeSpec
impl Freeze for NodeSpec
impl RefUnwindSafe for NodeSpec
impl Send for NodeSpec
impl Sync for NodeSpec
impl Unpin for NodeSpec
impl UnsafeUnpin for NodeSpec
impl UnwindSafe for NodeSpec
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