Convert blur, median_filter, color_overlay, and image_color_palette to record kernels

This commit is contained in:
Dennis Kobert
2026-08-23 17:10:00 +00:00
parent 511b4da9f5
commit 9ba3c16e79
3 changed files with 57 additions and 67 deletions
@@ -1,6 +1,4 @@
use crate::adjust::Adjust;
#[cfg(feature = "std")]
use core_types::list::List;
use no_std_types::Ctx;
use no_std_types::blending::BlendMode;
use no_std_types::color::{Color, Pixel};
@@ -179,12 +177,12 @@ fn mix<T: Blend<Color> + Clone + Send + Sync + core_types::CacheHash + 'static>(
}
#[node_macro::node(category("Raster: Adjustment"), shader_node(PerPixelAdjust))]
fn color_overlay<T: Adjust<Color>>(
fn color_overlay<T: Adjust<Color> + Clone + Send + Sync + no_std_types::context::CacheHash + 'static>(
_: impl Ctx,
#[implementations(
List<Raster<CPU>>,
List<Color>,
List<GradientStops>,
Raster<CPU>,
Color,
GradientStops,
)]
#[gpu_image]
mut image: T,