pub struct EffectDef {
pub id: String,
pub version: u32,
pub kind: EffectKind,
pub inputs: Vec<InputSpec>,
pub params: Vec<ParamSpec>,
pub resources: Vec<ResourceSpec>,
pub wgsl_body: String,
pub tier_min: CapabilityTier,
pub license: Option<String>,
}Expand description
Data-only runtime effect, transition, or generator definition.
The renderer’s quality controls reach every effect at run time, not
through its parameters: the shader reads its filter-sample budget from
the prelude’s max_filter_samples() and scales its own cost by it, as
the built-in blur does.
Fields§
§id: StringStable author-defined identifier.
version: u32Schema and shader version.
kind: EffectKindEffect or transition contract.
inputs: Vec<InputSpec>Images the effect samples besides its source, at most
crate::MAX_EFFECT_INPUTS; only an EffectKind::Effect declares
them.
params: Vec<ParamSpec>Ordered parameter schema.
resources: Vec<ResourceSpec>Ordered external resource schema.
wgsl_body: StringAuthor function implementing the selected contract.
tier_min: CapabilityTierMinimum required GPU capability tier.
license: Option<String>SPDX expression or attribution text.
Trait Implementations§
impl StructuralPartialEq for EffectDef
Auto Trait Implementations§
impl Freeze for EffectDef
impl RefUnwindSafe for EffectDef
impl Send for EffectDef
impl Sync for EffectDef
impl Unpin for EffectDef
impl UnsafeUnpin for EffectDef
impl UnwindSafe for EffectDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more