pub struct GaussianKernel {
pub sigma: f32,
pub tap_radius: i32,
}Expand description
A resolved separable-Gaussian kernel: the standard deviation and the half-width (taps each
side of center). tap_radius == 0 is a single-tap pass-through (no blur).
Fields§
§sigma: f32The Gaussian standard deviation (always > 0, so the shader’s i / sigma is finite).
tap_radius: i32Taps each side of center, clamped to MAX_GAUSSIAN_RADIUS.
Trait Implementations§
Source§impl Clone for GaussianKernel
impl Clone for GaussianKernel
Source§fn clone(&self) -> GaussianKernel
fn clone(&self) -> GaussianKernel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GaussianKernel
Source§impl Debug for GaussianKernel
impl Debug for GaussianKernel
Source§impl PartialEq for GaussianKernel
impl PartialEq for GaussianKernel
Source§fn eq(&self, other: &GaussianKernel) -> bool
fn eq(&self, other: &GaussianKernel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GaussianKernel
Auto Trait Implementations§
impl Freeze for GaussianKernel
impl RefUnwindSafe for GaussianKernel
impl Send for GaussianKernel
impl Sync for GaussianKernel
impl Unpin for GaussianKernel
impl UnsafeUnpin for GaussianKernel
impl UnwindSafe for GaussianKernel
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