Enum sierra::BlendOp [−][src]
pub enum BlendOp { Add, Subtract, ReverseSubtract, Min, Max, }
Expand description
Blending operation to be applied between color value from fragment shader’s color output and value stored in attachment.
For each operation comment contains an equivalent Rust expression
where S
is value from fragment shader’s color output, Sf
is factor
calculated for fragment shader’s color output, Dis value stored in attachment and
Df` is factor calculated for value stored in attachment.
Variants
S * Sf + D * Df
.
S * Sf - D * Df
D * Df - S * Sf
min(S, D)
max(S, D)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlendOp
impl UnwindSafe for BlendOp
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