EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
M13.9: gpu crate docs, tidy GPU_EFFECTS
Brandon Thomasf309381cd3f8
diff --git a/crates/effects/src/lib.rs b/crates/effects/src/lib.rsindex fa1c96632..597eed8a0 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 animateddiff --git a/crates/gpu/src/lib.rs b/crates/gpu/src/lib.rsindex f4871fd75..559393bc7 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