Enum sierra::ColorBlend [−][src]
pub enum ColorBlend { Logic { op: LogicOp, }, Blending { blending: Option<Blending>, write_mask: ComponentMask, constants: State<[OrderedFloat<f32>; 4]>, }, IndependentBlending { blending: Vec<(Option<Blending>, ComponentMask)>, constants: State<[OrderedFloat<f32>; 4]>, }, }
Expand description
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.
Show fields
Fields of Logic
op: LogicOp
Logical operations to be applied.
Color and alpha of all attachments should be blended in the same way.
Show fields
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.
Show fields
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more