Struct wgpu_types::BlendComponent [−][src]
#[repr(C)]pub struct BlendComponent { pub src_factor: BlendFactor, pub dst_factor: BlendFactor, pub operation: BlendOperation, }
Describes the blend component of a pipeline.
Fields
src_factor: BlendFactor
Multiplier for the source, which is produced by the fragment shader.
dst_factor: BlendFactor
Multiplier for the destination, which is stored in the target.
operation: BlendOperation
The binary operation applied to the source and destination, multiplied by their respective factors.
Implementations
impl BlendComponent
[src]
impl BlendComponent
[src]pub const REPLACE: Self
[src]
Default blending state that replaces destination with the source.
pub const OVER: Self
[src]
Blend state of (1 * src) + ((1 - src_alpha) * dst)
pub fn uses_constant(&self) -> bool
[src]
Returns true if the state relies on the constant color, which is set independently on a render command encoder.
Trait Implementations
impl Clone for BlendComponent
[src]
impl Clone for BlendComponent
[src]fn clone(&self) -> BlendComponent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BlendComponent
[src]
impl Copy for BlendComponent
[src]impl Default for BlendComponent
[src]
impl Default for BlendComponent
[src]impl Eq for BlendComponent
[src]
impl Eq for BlendComponent
[src]impl Hash for BlendComponent
[src]
impl Hash for BlendComponent
[src]impl PartialEq<BlendComponent> for BlendComponent
[src]
impl PartialEq<BlendComponent> for BlendComponent
[src]fn eq(&self, other: &BlendComponent) -> bool
[src]
fn ne(&self, other: &BlendComponent) -> bool
[src]
impl StructuralEq for BlendComponent
[src]
impl StructuralEq for BlendComponent
[src]impl StructuralPartialEq for BlendComponent
[src]
impl StructuralPartialEq for BlendComponent
[src]Auto Trait Implementations
impl RefUnwindSafe for BlendComponent
impl RefUnwindSafe for BlendComponent
impl Send for BlendComponent
impl Send for BlendComponent
impl Sync for BlendComponent
impl Sync for BlendComponent
impl Unpin for BlendComponent
impl Unpin for BlendComponent
impl UnwindSafe for BlendComponent
impl UnwindSafe for BlendComponent