#[non_exhaustive]pub enum NodeParam {
MotionBlurShutter(f32),
ShapeMaskRect {
x: u32,
y: u32,
width: u32,
height: u32,
invert: bool,
},
}Expand description
A parameter a node accepts per frame without being rebuilt.
This exists for stateful nodes. A node whose output depends only on its
parameters can simply be rebuilt when one changes; MotionBlurNode cannot,
because rebuilding discards the exposure trail that is the whole point of it.
So the parameter travels to the live node instead.
Non-exhaustive: more animatable parameters join it as they are needed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MotionBlurShutter(f32)
MotionBlurNode’s shutter angle in degrees.
ShapeMaskRect
ShapeMaskNode’s rectangle, in source-frame pixels, and whether it is
inverted. The shader evaluates the rectangle, so moving it is a parameter
change rather than a rebuild.
Trait Implementations§
impl Copy for NodeParam
impl StructuralPartialEq for NodeParam
Auto Trait Implementations§
impl Freeze for NodeParam
impl RefUnwindSafe for NodeParam
impl Send for NodeParam
impl Sync for NodeParam
impl Unpin for NodeParam
impl UnsafeUnpin for NodeParam
impl UnwindSafe for NodeParam
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