#[non_exhaustive]pub struct EffectSpec {
pub id: String,
pub version: u32,
pub kind: EffectKind,
pub label: String,
pub group: String,
pub inputs: Vec<String>,
pub params: Vec<EffectParamSpec>,
pub resources: Vec<String>,
pub coverage_commutes: bool,
}Expand description
A built-in effect or transition definition, without its shader.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe id documents name it by.
version: u32The version documents must name.
kind: EffectKindWhat it draws.
label: StringA human-readable label.
group: StringThe catalog group it is listed under.
inputs: Vec<String>The named images it samples besides its input.
params: Vec<EffectParamSpec>Its parameters, in declaration order.
resources: Vec<String>The external resources it reads, by slot name.
coverage_commutes: boolWhether this transition of two pictures under one coverage (a matte or mask) equals that coverage over their transition, for every parameter value.
Implementations§
Source§impl EffectSpec
impl EffectSpec
Sourcepub fn param(&self, name: &str) -> Option<&EffectParamSpec>
pub fn param(&self, name: &str) -> Option<&EffectParamSpec>
The parameter named name.
Trait Implementations§
Source§impl Clone for EffectSpec
impl Clone for EffectSpec
Source§impl Debug for EffectSpec
impl Debug for EffectSpec
Source§impl PartialEq for EffectSpec
impl PartialEq for EffectSpec
impl StructuralPartialEq for EffectSpec
Auto Trait Implementations§
impl Forget for EffectSpec
impl Freeze for EffectSpec
impl Move for EffectSpec
impl RefUnwindSafe for EffectSpec
impl Send for EffectSpec
impl Sync for EffectSpec
impl Unpin for EffectSpec
impl UnsafeUnpin for EffectSpec
impl UnwindSafe for EffectSpec
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