Struct rafx_api::RafxBlendState[][src]

pub struct RafxBlendState {
    pub render_target_blend_states: Vec<RafxBlendStateRenderTarget>,
    pub render_target_mask: RafxBlendStateTargets,
    pub independent_blend: bool,
}

Affects the way the result of a pixel shader is blended with a value it will overwrite. Commonly used to enable “alpha-blending”.

Fields

render_target_blend_states: Vec<RafxBlendStateRenderTarget>

Individual blend states for blend targets

render_target_mask: RafxBlendStateTargets

Indicates which blend targets to affect. Blend targets with unset bits are left in default state.

independent_blend: bool

If false, render_target_blend_states[0] will apply to all render targets indicated by render_target_mask. If true, we index into render_target_blend_states based on the render target’s index.

Implementations

impl RafxBlendState[src]

impl RafxBlendState[src]

pub fn verify(&self, color_attachment_count: usize)[src]

Trait Implementations

impl Clone for RafxBlendState[src]

impl Debug for RafxBlendState[src]

impl Default for RafxBlendState[src]

impl Eq for RafxBlendState[src]

impl Hash for RafxBlendState[src]

impl PartialEq<RafxBlendState> for RafxBlendState[src]

impl StructuralEq for RafxBlendState[src]

impl StructuralPartialEq for RafxBlendState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.