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.
Quality controls are not parameters; a shader reads its sample budget from
max_filter_samples().
Fields§
§id: StringStable author-defined identifier.
version: u32Schema and shader version.
kind: EffectKindEffect or transition contract.
inputs: Vec<InputSpec>Extra sampled images, at most crate::MAX_EFFECT_INPUTS; EffectKind::Effect only.
params: Vec<ParamSpec>Ordered parameter schema.
resources: Vec<ResourceSpec>Ordered external resource schema.
wgsl_body: StringAuthor function implementing the selected contract. Code outside comments is ASCII.
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 Forget for EffectDef
impl Freeze for EffectDefwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<InputSpec>: Freeze,
PhantomData<ParamSpec>: Freeze,
PhantomData<ResourceSpec>: Freeze,
impl Move for EffectDef
impl RefUnwindSafe for EffectDef
impl Send for EffectDefwhere
RawVecInner: Send,
impl Sync for EffectDefwhere
RawVecInner: Sync,
impl Unpin for EffectDef
impl UnsafeUnpin for EffectDefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<InputSpec>: UnsafeUnpin,
PhantomData<ParamSpec>: UnsafeUnpin,
PhantomData<ResourceSpec>: UnsafeUnpin,
impl UnwindSafe for EffectDefwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more