Skip to main content

Module filter

Module filter 

Source
Expand description

Filter effects implementation for vello_cpu.

This module provides CPU-based implementations of SVG filter effects, supporting both low-precision (u8) and high-precision (f32) rendering paths. Filters are applied to rendered layer pixmaps and may use scratch storage for intermediate buffers.

Modulesยง

context ๐Ÿ”’
drop_shadow ๐Ÿ”’
Drop shadow filter implementation.
flood ๐Ÿ”’
Flood filter implementation.
gaussian_blur ๐Ÿ”’
Gaussian blur filter implementation using multi-scale separable convolution.
offset ๐Ÿ”’
feOffset filter primitive implementation.
shift ๐Ÿ”’
Shared helpers for pixel-space filter operations.

Traitsยง

FilterEffect ๐Ÿ”’
Trait for filter effects that can be applied to layers.

Functionsยง

filter_highp ๐Ÿ”’
Apply the high-precision (f32) version of a filter effect to a layer.
filter_lowp ๐Ÿ”’
Apply the low-precision (u8) version of a filter effect to a layer.