From f309381cd3f8a2920249845d51ff8056c2dc568b Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 3 Oct 2026 08:57:33 -0400 Subject: [PATCH] M13.9: gpu crate docs, tidy GPU_EFFECTS Co-Authored-By: Claude Opus 5.5 --- crates/effects/src/lib.rs | 2 -- crates/gpu/src/lib.rs | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/effects/src/lib.rs b/crates/effects/src/lib.rs index fa1c9663..597eed8a 100644 --- a/crates/effects/src/lib.rs +++ b/crates/effects/src/lib.rs @@ -841,7 +841,6 @@ pub const GPU_EFFECTS: &[&str] = &[ "ec.channel.blend", "ec.channel.calculations", "ec.channel.compoundarithmetic", - // // effectcraft-gpu fx_tone (colour correction) "ec.color.levelsic", "ec.color.gammapedestalgain", @@ -913,7 +912,6 @@ pub const GPU_EFFECTS: &[&str] = &[ "ec.channel.minimax", "ec.time.echo", "ec.time.posterizetime", - // ]; /// Effects whose output depends on [`EffectCtx::time`] directly (not only through animated diff --git a/crates/gpu/src/lib.rs b/crates/gpu/src/lib.rs index f4871fd7..559393bc 100644 --- a/crates/gpu/src/lib.rs +++ b/crates/gpu/src/lib.rs @@ -16,7 +16,10 @@ //! //! GPU effects ([`effectcraft_effects::GPU_EFFECTS`]) run as compute kernels with the CPU //! effect's exact steps (padding, box-blur radii, parameter conversions); chains of them are -//! uploaded and read back once. +//! uploaded and read back once. Each family lives in its own module with its own WGSL file +//! (`fx_color`, `fx_distort`, `fx_generate`, `fx_key`, `fx_noise`, `fx_stylize`, `fx_tone`); +//! settings a kernel cannot match fall back to the CPU (`catalog::gpu_supported`, or `None` +//! from the family's `apply`). //! //! GPU particles (`particles`): the stepped particle effects hand their simulation to //! [`effectcraft_effects::psim::ParticleSim`], implemented here with one invocation per particle