pub enum FilterPassKind {
Copy,
Offset,
Downscale,
BlurH,
BlurV,
Upscale,
Colorize,
}Expand description
One pass of a filter’s sequence.
The numbering is the wire format the fragment stage switches on; it matches
the reference renderer’s own — flood (1) and the drop-shadow composite that
reads the layer’s own unfiltered content back (7) are still reserved and
still unserved (see drop_shadow’s own doc), and can be added later
without renumbering.
Variants§
Copy
Copy the source region through unchanged.
Offset
Shift the source region by a drop shadow’s own device-space offset.
Downscale
Halve both axes.
BlurH
Convolve horizontally with the blur kernel.
BlurV
Convolve vertically with the blur kernel.
Upscale
Double both axes.
Colorize
Recolour a blurred, offset alpha mask into a drop shadow’s own premultiplied colour.
Implementations§
Trait Implementations§
Source§impl Clone for FilterPassKind
impl Clone for FilterPassKind
impl Copy for FilterPassKind
Source§impl Debug for FilterPassKind
impl Debug for FilterPassKind
impl Eq for FilterPassKind
Source§impl Hash for FilterPassKind
impl Hash for FilterPassKind
Source§impl PartialEq for FilterPassKind
impl PartialEq for FilterPassKind
impl StructuralPartialEq for FilterPassKind
Auto Trait Implementations§
impl Freeze for FilterPassKind
impl RefUnwindSafe for FilterPassKind
impl Send for FilterPassKind
impl Sync for FilterPassKind
impl Unpin for FilterPassKind
impl UnsafeUnpin for FilterPassKind
impl UnwindSafe for FilterPassKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.