Struct wgpu_types::BlendState
source · #[repr(C)]pub struct BlendState {
pub color: BlendComponent,
pub alpha: BlendComponent,
}
Expand description
Describe the blend state of a render pipeline.
See the OpenGL or Vulkan spec for more information.
Fields§
§color: BlendComponent
Color equation.
alpha: BlendComponent
Alpha equation.
Implementations§
source§impl BlendState
impl BlendState
sourcepub const REPLACE: Self = _
pub const REPLACE: Self = _
Blend mode that does no color blending, just overwrites the output with the contents of the shader.
sourcepub const ALPHA_BLENDING: Self = _
pub const ALPHA_BLENDING: Self = _
Blend mode that does standard alpha blending with non-premultiplied alpha.
sourcepub const PREMULTIPLIED_ALPHA_BLENDING: Self = _
pub const PREMULTIPLIED_ALPHA_BLENDING: Self = _
Blend mode that does standard alpha blending with premultiplied alpha.
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 more