pub struct GaussianBlurNode {
pub sigma: f32,
/* private fields */
}Expand description
Two-pass separable Gaussian blur.
Fields§
§sigma: f32Standard deviation in pixels. Effective range [0.5, 20.0] (values outside
are clamped); a larger sigma is truncated to a 15-tap kernel.
Implementations§
Trait Implementations§
Source§impl RenderNode for GaussianBlurNode
Available on crate feature wgpu only.
impl RenderNode for GaussianBlurNode
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 GaussianBlurNode
impl RenderNodeCpu for GaussianBlurNode
Auto Trait Implementations§
impl !Freeze for GaussianBlurNode
impl !RefUnwindSafe for GaussianBlurNode
impl !UnwindSafe for GaussianBlurNode
impl Send for GaussianBlurNode
impl Sync for GaussianBlurNode
impl Unpin for GaussianBlurNode
impl UnsafeUnpin for GaussianBlurNode
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