M13.9: gpu effect family scaffolding (fx_key, fx_stylize, fx_noise)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-03 07:51:33 -04:00
co-authored by Claude Opus 5.5
parent 175375cbe8
commit 47f61debcb
13 changed files with 96 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
//! GPU effects, keying, matte and channel family (kernels in `shaders/fx_key.wgsl`, every entry point prefixed
//! `fxk_`): the CPU effects' exact steps with the pixel loops as compute kernels.
use effectcraft_effects::EffectCtx;
use crate::context::Enc;
use crate::effects::GBuf;
/// Compute entry points in `fx_key.wgsl`.
pub(crate) const KERNELS: &[&str] = &[];
/// Effect ids implemented here.
pub(crate) const IDS: &[&str] = &[];
/// Run effect `id` (one of [`IDS`]); `None` = this parameter combination runs on the CPU.
pub(crate) fn apply(e: &mut Enc, id: &str, ctx: &EffectCtx, b: GBuf) -> Option<GBuf> {
let _ = (e, id, ctx, b);
None
}