#[repr(u8)]pub enum BlendOp {
Source,
Over,
}
Expand description
How pixels are written into the buffer.
Variants§
Source
Pixels overwrite the value at their position.
Over
The new pixels are blended into the current state based on alpha.
Implementations§
Trait Implementations§
source§impl PartialEq<BlendOp> for BlendOp
impl PartialEq<BlendOp> for BlendOp
impl Copy for BlendOp
impl Eq for BlendOp
impl StructuralEq for BlendOp
impl StructuralPartialEq for BlendOp
Auto Trait Implementations§
impl RefUnwindSafe for BlendOp
impl Send for BlendOp
impl Sync for BlendOp
impl Unpin for BlendOp
impl UnwindSafe for BlendOp
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