pub struct AlphaPremultiply {
pub id: NodeId,
pub mode: NodeProperty,
pub source: PortRef,
}Expand description
Converts raster alpha between premultiplied and unpremultiplied representations.
Fields§
§id: NodeId§mode: NodePropertyAlpha conversion mode.
source: PortRefTrait Implementations§
Source§impl Clone for AlphaPremultiply
impl Clone for AlphaPremultiply
Source§fn clone(&self) -> AlphaPremultiply
fn clone(&self) -> AlphaPremultiply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlphaPremultiply
impl Debug for AlphaPremultiply
Source§impl Default for AlphaPremultiply
impl Default for AlphaPremultiply
Source§impl GpuCompileNode for AlphaPremultiply
impl GpuCompileNode for AlphaPremultiply
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for AlphaPremultiply
impl GpuFrameBindNode for AlphaPremultiply
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for AlphaPremultiply
impl Node for AlphaPremultiply
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for AlphaPremultiply
impl PropertyEval for AlphaPremultiply
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for AlphaPremultiply
impl RefUnwindSafe for AlphaPremultiply
impl Send for AlphaPremultiply
impl Sync for AlphaPremultiply
impl Unpin for AlphaPremultiply
impl UnsafeUnpin for AlphaPremultiply
impl UnwindSafe for AlphaPremultiply
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