pub struct Boolean {
pub id: NodeId,
pub operation: NodeProperty,
pub threshold: NodeProperty,
pub a: PortRef,
pub b: PortRef,
}Expand description
Combines two raster alpha masks with boolean operations.
Fields§
§id: NodeId§operation: NodePropertyBoolean operation used to combine the two input masks.
threshold: NodePropertyAlpha cutoff used before evaluating the boolean operation.
a: PortRef§b: PortRefTrait Implementations§
Source§impl GpuCompileNode for Boolean
impl GpuCompileNode for Boolean
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Boolean
impl GpuFrameBindNode for Boolean
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Boolean
impl Node for Boolean
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Boolean
impl PropertyEval for Boolean
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Boolean
impl RefUnwindSafe for Boolean
impl Send for Boolean
impl Sync for Boolean
impl Unpin for Boolean
impl UnsafeUnpin for Boolean
impl UnwindSafe for Boolean
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