pub struct HslNode {
pub hue_shift: f32,
pub saturation: f32,
pub lightness: f32,
/* private fields */
}Expand description
Hue, saturation, and lightness adjustment.
Fields§
§hue_shift: f32Hue rotation in degrees (−180 to +180; 0 = no change).
saturation: f32Saturation multiplier (0.0 = greyscale, 1.0 = unchanged, 2.0 = double).
lightness: f32Lightness offset (−1.0 to +1.0; 0 = no change).
Implementations§
Trait Implementations§
Source§impl RenderNode for HslNode
Available on crate feature wgpu only.
impl RenderNode for HslNode
Available on crate feature
wgpu only.Source§fn process(
&self,
inputs: &[&Texture],
outputs: &[&Texture],
ctx: &RenderContext,
)
fn process( &self, inputs: &[&Texture], outputs: &[&Texture], ctx: &RenderContext, )
Run the GPU render pass. Read more
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Number of input textures required by this node (default: 1).
Source§fn pass_count(&self) -> usize
fn pass_count(&self) -> usize
Number of render passes (default: 1). Multi-pass nodes (e.g. gaussian
blur) return 2 or more.
Auto Trait Implementations§
impl !Freeze for HslNode
impl !RefUnwindSafe for HslNode
impl !UnwindSafe for HslNode
impl Send for HslNode
impl Sync for HslNode
impl Unpin for HslNode
impl UnsafeUnpin for HslNode
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