Struct simple_wgpu::ColorTargetState
source · pub struct ColorTargetState {
pub blend: Option<BlendState>,
pub write_mask: ColorWrites,
}
Expand description
Sets blend modes and color masks for a render target
Loosely equivalent to [wgpu::ColorTargetState]
Fields§
§blend: Option<BlendState>
§write_mask: ColorWrites
Trait Implementations§
source§impl Clone for ColorTargetState
impl Clone for ColorTargetState
source§fn clone(&self) -> ColorTargetState
fn clone(&self) -> ColorTargetState
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 ColorTargetState
impl Debug for ColorTargetState
source§impl Default for ColorTargetState
impl Default for ColorTargetState
source§fn default() -> ColorTargetState
fn default() -> ColorTargetState
Returns the “default value” for a type. Read more
source§impl Hash for ColorTargetState
impl Hash for ColorTargetState
source§impl PartialEq<ColorTargetState> for ColorTargetState
impl PartialEq<ColorTargetState> for ColorTargetState
source§fn eq(&self, other: &ColorTargetState) -> bool
fn eq(&self, other: &ColorTargetState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ColorTargetState
impl StructuralEq for ColorTargetState
impl StructuralPartialEq for ColorTargetState
Auto Trait Implementations§
impl RefUnwindSafe for ColorTargetState
impl Send for ColorTargetState
impl Sync for ColorTargetState
impl Unpin for ColorTargetState
impl UnwindSafe for ColorTargetState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.