pub struct BlendMode {
pub rgb: ChannelBlendMode,
pub alpha: ChannelBlendMode,
}
Fields§
§rgb: ChannelBlendMode
§alpha: ChannelBlendMode
Implementations§
source§impl BlendMode
impl BlendMode
pub fn combined(mode: ChannelBlendMode) -> Self
sourcepub fn straight_alpha() -> Self
pub fn straight_alpha() -> Self
https://en.wikipedia.org/wiki/Alpha_Blending
pub fn premultiplied_alpha() -> Self
Trait Implementations§
source§impl PartialEq for BlendMode
impl PartialEq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
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