pub struct SharpenNode {
pub radius: f32,
pub strength: f32,
/* private fields */
}Expand description
Unsharp-mask sharpen: orig + (orig - blurred) * strength.
Fields§
§radius: f32Blur radius (as the Gaussian sigma) for the unsharp mask. Range [0.5, 5.0].
strength: f32Sharpening strength (0.0 = no-op). Typical range [0.0, 3.0].
Implementations§
Trait Implementations§
Source§impl RenderNode for SharpenNode
Available on crate feature wgpu only.
impl RenderNode for SharpenNode
Available on crate feature
wgpu only.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.
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§impl RenderNodeCpu for SharpenNode
impl RenderNodeCpu for SharpenNode
Auto Trait Implementations§
impl !Freeze for SharpenNode
impl !RefUnwindSafe for SharpenNode
impl !UnwindSafe for SharpenNode
impl Send for SharpenNode
impl Sync for SharpenNode
impl Unpin for SharpenNode
impl UnsafeUnpin for SharpenNode
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