pub struct BlurKernel {
pub pairs: [BlurTapPair; 16],
pub pair_count: u32,
pub total_weight: f32,
}Expand description
The separable Gaussian kernel of a blur of radius source texels as the
blur pass samples it: pair_count pairs on each side, total_weight the
kernel’s sum with the centre tap’s one, computed once per draw.
Fields§
§pairs: [BlurTapPair; 16]§pair_count: u32§total_weight: f32Implementations§
Trait Implementations§
Source§impl Clone for BlurKernel
impl Clone for BlurKernel
Source§fn clone(&self) -> BlurKernel
fn clone(&self) -> BlurKernel
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 BlurKernel
Source§impl Debug for BlurKernel
impl Debug for BlurKernel
Source§impl PartialEq for BlurKernel
impl PartialEq for BlurKernel
impl StructuralPartialEq for BlurKernel
Auto Trait Implementations§
impl Freeze for BlurKernel
impl RefUnwindSafe for BlurKernel
impl Send for BlurKernel
impl Sync for BlurKernel
impl Unpin for BlurKernel
impl UnsafeUnpin for BlurKernel
impl UnwindSafe for BlurKernel
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