pub enum ServedFilter {
Blur(GaussianBlur),
DropShadow(DropShadow),
}Expand description
One of the two filters this engine renders, read back off a recording.
The shared answer of served_filter, so the three sites that have to know
which filter a layer carries — crate::schedule’s layer_role and
filter_rounds, and crate::renderer’s filter_block — dispatch on one
decision rather than each re-deriving it from a try-blur-then-drop-shadow
pair of their own.
Variants§
Blur(GaussianBlur)
A Gaussian blur, prepared into device space.
DropShadow(DropShadow)
A shadow-only drop shadow, prepared into device space.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServedFilter
impl RefUnwindSafe for ServedFilter
impl Send for ServedFilter
impl Sync for ServedFilter
impl Unpin for ServedFilter
impl UnsafeUnpin for ServedFilter
impl UnwindSafe for ServedFilter
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