Expand description
Filter trait + built-in filters.
Filters operate on RenderTextures. Each filter declares how many passes
it needs; the orchestrator on Renderer::apply_filter allocates a scratch
RenderTexture when needed and ping-pongs.
Built-ins:
blur::BlurFilter— separable Gaussian (M0.16)drop_shadow::DropShadowFilter— alpha extract + blur + composite (M0.17)motion_blur::MotionBlurFilter— velocity-driven directional blur (M0.18)color_matrix::ColorMatrixFilter— 4×5 RGBA matrix (M0.18)
Re-exports§
pub use blur::BlurFilter;pub use color_matrix::ColorMatrixFilter;pub use drop_shadow::DropShadowFilter;pub use motion_blur::MotionBlurFilter;
Modules§
- blur
BlurFilter— two-pass separable Gaussian blur.- color_
matrix ColorMatrixFilter— 4×5 RGBA matrix multiplication.- drop_
shadow DropShadowFilter— alpha extract → blur → composite under source.- motion_
blur MotionBlurFilter— directional Gaussian blur driven by a velocity vector.
Structs§
- Filter
Context - Per-filter render context — provides the wgpu device / queue / encoder needed to enqueue draw work for a filter pass.
Traits§
- Filter
- A renderable post-process filter applied to a
RenderTexture.