[][src]Struct wgpu::ColorStateDescriptor

#[repr(C)]pub struct ColorStateDescriptor {
    pub format: TextureFormat,
    pub alpha_blend: BlendDescriptor,
    pub color_blend: BlendDescriptor,
    pub write_mask: ColorWrite,
}

Describes the color state of a render pipeline.

Fields

format: TextureFormat

The TextureFormat of the image that this pipeline will render to. Must match the the format of the corresponding color attachment in [CommandEncoder::begin_render_pass].

alpha_blend: BlendDescriptor

The alpha blending that is used for this pipeline.

color_blend: BlendDescriptor

The color blending that is used for this pipeline.

write_mask: ColorWrite

Mask which enables/disables writes to different color/alpha channel.

Trait Implementations

impl Clone for ColorStateDescriptor[src]

impl Debug for ColorStateDescriptor[src]

impl<'de> Deserialize<'de> for ColorStateDescriptor[src]

impl Eq for ColorStateDescriptor[src]

impl From<TextureFormat> for ColorStateDescriptor[src]

impl Hash for ColorStateDescriptor[src]

impl PartialEq<ColorStateDescriptor> for ColorStateDescriptor[src]

impl Serialize for ColorStateDescriptor[src]

impl StructuralEq for ColorStateDescriptor[src]

impl StructuralPartialEq for ColorStateDescriptor[src]

Auto Trait Implementations

impl RefUnwindSafe for ColorStateDescriptor

impl Send for ColorStateDescriptor

impl Sync for ColorStateDescriptor

impl Unpin for ColorStateDescriptor

impl UnwindSafe for ColorStateDescriptor

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.