1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # prgpu — declarative GPU effect framework for Adobe host plug-ins
//!
//! ```ignore
//! // playground/src/lib.rs — a complete effect in ~45 lines
//! use prgpu::prelude::*;
//! pub mod kernel; pub mod params;
//! use crate::{kernel::playground, params::*};
//! pub struct Playground;
//! impl Effect for Playground {
//! type Params = Params;
//! fn descriptor(d: EffectDescriptor) -> EffectDescriptor { d.about("…").options_button("…") }
//! fn expansion(ctx: &Ctx<Params>) -> ExpansionExtent { /* ... */ }
//! fn pipeline(g: &mut Graph<Params>) { g.pass(playground::kernel()); }
//! }
//! prgpu::register_effect!(Playground);
//! ```
//!
//! Concept map: `params!` → `kernel!` → `Effect` → `register_effect!` → `build()`.
// Lets the `Popup` derive and `params!` codegen reference `::prgpu::*` even when
// expanded inside this crate (e.g. on `BlendMode`).
extern crate self as prgpu;
pub use *;
pub use paste;
pub use ;