#[repr(C)]pub struct ColorStateDescriptor {
pub format: TextureFormat,
pub alpha_blend: BlendDescriptor,
pub color_blend: BlendDescriptor,
pub write_mask: ColorWrite,
}
Expand description
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§
Source§impl Clone for ColorStateDescriptor
impl Clone for ColorStateDescriptor
Source§fn clone(&self) -> ColorStateDescriptor
fn clone(&self) -> ColorStateDescriptor
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 moreSource§impl Debug for ColorStateDescriptor
impl Debug for ColorStateDescriptor
Source§impl<'de> Deserialize<'de> for ColorStateDescriptor
impl<'de> Deserialize<'de> for ColorStateDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ColorStateDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ColorStateDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ColorStateDescriptor
impl Hash for ColorStateDescriptor
Source§impl PartialEq for ColorStateDescriptor
impl PartialEq for ColorStateDescriptor
Source§impl Serialize for ColorStateDescriptor
impl Serialize for ColorStateDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ColorStateDescriptor
impl StructuralPartialEq for ColorStateDescriptor
Auto Trait Implementations§
impl Freeze for ColorStateDescriptor
impl RefUnwindSafe for ColorStateDescriptor
impl Send for ColorStateDescriptor
impl Sync for ColorStateDescriptor
impl Unpin for ColorStateDescriptor
impl UnwindSafe for ColorStateDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more