Enum ggez::graphics::BlendFactor
[−]#[repr(C)]
pub enum BlendFactor {
Show 13 variants
Zero,
One,
Src,
OneMinusSrc,
SrcAlpha,
OneMinusSrcAlpha,
Dst,
OneMinusDst,
DstAlpha,
OneMinusDstAlpha,
SrcAlphaSaturated,
Constant,
OneMinusConstant,
}
Expand description
Alpha blend factor.
Alpha blending is very complicated: see the OpenGL or Vulkan spec for more information.
Corresponds to WebGPU GPUBlendFactor
.
Variants
Zero
0.0
One
1.0
Src
S.component
OneMinusSrc
1.0 - S.component
SrcAlpha
S.alpha
OneMinusSrcAlpha
1.0 - S.alpha
Dst
D.component
OneMinusDst
1.0 - D.component
DstAlpha
D.alpha
OneMinusDstAlpha
1.0 - D.alpha
SrcAlphaSaturated
min(S.alpha, 1.0 - D.alpha)
Constant
Constant
OneMinusConstant
1.0 - Constant
Trait Implementations
impl Clone for BlendFactor
impl Clone for BlendFactor
fn clone(&self) -> BlendFactor
fn clone(&self) -> BlendFactor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for BlendFactor
impl Debug for BlendFactor
impl Hash for BlendFactor
impl Hash for BlendFactor
impl PartialEq<BlendFactor> for BlendFactor
impl PartialEq<BlendFactor> for BlendFactor
fn eq(&self, other: &BlendFactor) -> bool
fn eq(&self, other: &BlendFactor) -> bool
impl Copy for BlendFactor
impl Eq for BlendFactor
impl StructuralEq for BlendFactor
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnwindSafe for BlendFactor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> HasMut<T> for T
impl<T> HasMut<T> for T
sourcefn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.