Enum wgpu_types::BlendFactor [−][src]
#[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.
Variants
0.0
1.0
S.component
1.0 - S.component
S.alpha
1.0 - S.alpha
D.component
1.0 - D.component
D.alpha
1.0 - D.alpha
min(S.alpha, 1.0 - D.alpha)
Constant
1.0 - Constant
Trait Implementations
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
Mutably borrows from an owned value. Read more