Files
effectcraft/crates/gpu/src/fx_generate.rs
T

19 lines
613 B
Rust
Raw Normal View History

//! GPU effects, blur, transition and generate family (kernels in `shaders/fx_generate.wgsl`): 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_generate.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> {
None
}