pub struct TargetState {
pub blend: Option<Blend>,
pub write_mask: u8,
}Expand description
What one render target does with a fragment: its blend and which channels it writes.
Fields§
§blend: Option<Blend>None where the target is not blended.
write_mask: u8The channels written: bit 0 red, 1 green, 2 blue, 3 alpha (0xf all).
Trait Implementations§
Source§impl Clone for TargetState
impl Clone for TargetState
Source§fn clone(&self) -> TargetState
fn clone(&self) -> TargetState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TargetState
Source§impl Debug for TargetState
impl Debug for TargetState
impl Eq for TargetState
Source§impl Hash for TargetState
impl Hash for TargetState
Source§impl PartialEq for TargetState
impl PartialEq for TargetState
Source§impl Serialize for TargetState
impl Serialize for TargetState
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 StructuralPartialEq for TargetState
Auto Trait Implementations§
impl Forget for TargetState
impl Freeze for TargetState
impl RefUnwindSafe for TargetState
impl Send for TargetState
impl Sync for TargetState
impl Unpin for TargetState
impl UnsafeUnpin for TargetState
impl UnwindSafe for TargetState
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