19 lines
613 B
Rust
19 lines
613 B
Rust
//! 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
|
||
|
|
}
|