20 lines
661 B
Rust
20 lines
661 B
Rust
//! GPU effects, stylize and distort family (kernels in `shaders/fx_stylize.wgsl`, every entry point prefixed
|
|||
|
|
//! `fxs_`): 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_stylize.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
|
||
|
|
}
|