pub struct BlendState {
pub color: BlendOp,
pub alpha: BlendOp,
}
Expand description
Specifies whether to use blending, and if so, which operations to use for color and alpha channels.
Fields§
§color: BlendOp
The blend operation to use for the color channels.
alpha: BlendOp
The blend operation to use for the alpha channel.
Implementations§
Source§impl BlendState
impl BlendState
Trait Implementations§
Source§impl Clone for BlendState
impl Clone for BlendState
Source§fn clone(&self) -> BlendState
fn clone(&self) -> BlendState
Returns a copy of the value. Read more
1.0.0 · 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 BlendState
impl Debug for BlendState
Source§impl Hash for BlendState
impl Hash for BlendState
Source§impl PartialEq for BlendState
impl PartialEq for BlendState
impl Copy for BlendState
impl Eq for BlendState
impl StructuralPartialEq for BlendState
Auto Trait Implementations§
impl Freeze for BlendState
impl RefUnwindSafe for BlendState
impl Send for BlendState
impl Sync for BlendState
impl Unpin for BlendState
impl UnwindSafe for BlendState
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