pub struct CompositionNode {
pub id: NodeId,
pub bypass: bool,
pub op: NodeOp,
}Expand description
One image operation in a Composition.
Fields§
§id: NodeIdIdentity, unique within its composition.
bypass: boolWhether the node passes its NodeOp::bypass_input through
unchanged instead of operating. A node without inputs cannot be
bypassed.
op: NodeOpWhat the node does, with its inputs and settings.
Implementations§
Source§impl CompositionNode
impl CompositionNode
Sourcepub fn needed_inputs(&self) -> Vec<NodeInput<'_>>
pub fn needed_inputs(&self) -> Vec<NodeInput<'_>>
The inputs drawing the node reads, in input order: only its
NodeOp::bypass_input when it is bypassed (none for a merge without
layers), and every input otherwise. The renderer plans these, and
crate::Project::used_sources follows them.
Trait Implementations§
Source§impl Clone for CompositionNode
impl Clone for CompositionNode
Source§impl Debug for CompositionNode
impl Debug for CompositionNode
Source§impl<'de> Deserialize<'de> for CompositionNode
impl<'de> Deserialize<'de> for CompositionNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompositionNode
impl PartialEq for CompositionNode
Source§impl Serialize for CompositionNode
impl Serialize for CompositionNode
impl StructuralPartialEq for CompositionNode
Auto Trait Implementations§
impl Freeze for CompositionNode
impl RefUnwindSafe for CompositionNode
impl Send for CompositionNode
impl Sync for CompositionNode
impl Unpin for CompositionNode
impl UnsafeUnpin for CompositionNode
impl UnwindSafe for CompositionNode
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