pub enum BlendFactor {
Zero,
One,
SrcColour,
OneMinusSrcColour,
SrcAlpha,
OneMinusSrcAlpha,
DstColour,
OneMinusDstColour,
DstAlpha,
OneMinusDstAlpha,
}Expand description
A blend factor.
Variants§
Zero
Zero.
One
One.
SrcColour
The source colour.
OneMinusSrcColour
One minus the source colour.
SrcAlpha
The source alpha.
OneMinusSrcAlpha
One minus the source alpha.
DstColour
The colour already in the target.
OneMinusDstColour
One minus the target colour.
DstAlpha
The alpha already in the target.
OneMinusDstAlpha
One minus the target alpha.
Trait Implementations§
Source§impl Clone for BlendFactor
impl Clone for BlendFactor
Source§fn clone(&self) -> BlendFactor
fn clone(&self) -> BlendFactor
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 moreimpl Copy for BlendFactor
Source§impl Debug for BlendFactor
impl Debug for BlendFactor
impl Eq for BlendFactor
Source§impl Hash for BlendFactor
impl Hash for BlendFactor
Source§impl PartialEq for BlendFactor
impl PartialEq for BlendFactor
Source§impl Serialize for BlendFactor
impl Serialize for BlendFactor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations§
impl Forget for BlendFactor
impl Freeze for BlendFactor
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnsafeUnpin for BlendFactor
impl UnwindSafe for BlendFactor
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