pub struct LumaMaskNode {
pub mask_rgba: Vec<u8>,
pub mask_width: u32,
pub mask_height: u32,
/* private fields */
}Expand description
Mask inputs[0] using the BT.709 luma of inputs[1] (or mask_rgba).
The mask luma (0.0–1.0) is multiplied into the base alpha channel.
Fields§
§mask_rgba: Vec<u8>Mask frame RGBA bytes (required for the CPU path).
mask_width: u32Width of mask_rgba.
mask_height: u32Height of mask_rgba.
Implementations§
Trait Implementations§
Source§impl RenderNode for LumaMaskNode
Available on crate feature wgpu only.
impl RenderNode for LumaMaskNode
Available on crate feature
wgpu only.Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Number of input textures required by this node (default: 1).
Source§fn process(
&self,
inputs: &[&Texture],
outputs: &[&Texture],
ctx: &RenderContext,
)
fn process( &self, inputs: &[&Texture], outputs: &[&Texture], ctx: &RenderContext, )
Run the GPU render pass. Read more
Source§fn pass_count(&self) -> usize
fn pass_count(&self) -> usize
Number of render passes (default: 1). Multi-pass nodes (e.g. gaussian
blur) return 2 or more.
Source§impl RenderNodeCpu for LumaMaskNode
impl RenderNodeCpu for LumaMaskNode
Auto Trait Implementations§
impl !Freeze for LumaMaskNode
impl !RefUnwindSafe for LumaMaskNode
impl !UnwindSafe for LumaMaskNode
impl Send for LumaMaskNode
impl Sync for LumaMaskNode
impl Unpin for LumaMaskNode
impl UnsafeUnpin for LumaMaskNode
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