Enum sierra::ColorBlend [−][src]
Defines how color stored in attachment should be blended with color output of fragment shader.
Variants
Values should be treated as unsigned integers and logic operation perforned. Color format must support logic operations.
Fields of Logic
op: LogicOp
Logical operations to be applied.
Color and alpha of all attachments should be blended in the same way.
Fields of Blending
blending: Option<Blending>
Blending state.
If None
then fragment’s output color is written unmodified.
write_mask: ComponentMask
Bitmask that specifies components that will be written to the attachment.
constants: State<[OrderedFloat<f32>; 4]>
Constants for certain blending factors.
Color and alpha of all attachments should be blended in specified way.
Fields of IndependentBlending
blending: Vec<(Option<Blending>, ComponentMask)>
A tuple of two states:
-
Blending state for each attachment. If
None
then fragment’s output color is written unmodified. -
Bitmask that specifies components that will be written to the attachment.
constants: State<[OrderedFloat<f32>; 4]>
Constants for certain blending factors.
Trait Implementations
impl Clone for ColorBlend
[src]
fn clone(&self) -> ColorBlend
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ColorBlend
[src]
impl Default for ColorBlend
[src]
impl Eq for ColorBlend
[src]
impl Hash for ColorBlend
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ColorBlend> for ColorBlend
[src]
fn eq(&self, other: &ColorBlend) -> bool
[src]
fn ne(&self, other: &ColorBlend) -> bool
[src]
impl StructuralEq for ColorBlend
[src]
impl StructuralPartialEq for ColorBlend
[src]
Auto Trait Implementations
impl RefUnwindSafe for ColorBlend
impl Send for ColorBlend
impl Sync for ColorBlend
impl Unpin for ColorBlend
impl UnwindSafe for ColorBlend
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,