pub enum LayerBlend {
Add,
Screen,
Multiply,
Overlay,
}Expand description
How an over layer blends into the chain (ADR-0090): fixed at load, like
every structural key, and applied in linear light within the layer’s
premultiplied-alpha footprint. Parsed now; consumed by the blend pass
(Plan 0076 Phase 3).
Variants§
Add
Linear-light addition — the engine’s native compositing idiom.
Screen
1 - (1-a)(1-b): bounded brightening. The default — ADR-0090’s
illustrative mode, and the one that cannot blow out.
Multiply
Darkens where the layer has coverage.
Overlay
Multiply below mid-grey, screen above.
Implementations§
Source§impl LayerBlend
impl LayerBlend
Trait Implementations§
Source§impl Clone for LayerBlend
impl Clone for LayerBlend
Source§fn clone(&self) -> LayerBlend
fn clone(&self) -> LayerBlend
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 moreSource§impl Debug for LayerBlend
impl Debug for LayerBlend
Source§impl Default for LayerBlend
impl Default for LayerBlend
Source§fn default() -> LayerBlend
fn default() -> LayerBlend
Returns the “default value” for a type. Read more
Source§impl PartialEq for LayerBlend
impl PartialEq for LayerBlend
Source§fn eq(&self, other: &LayerBlend) -> bool
fn eq(&self, other: &LayerBlend) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LayerBlend
impl Eq for LayerBlend
impl StructuralPartialEq for LayerBlend
Auto Trait Implementations§
impl Freeze for LayerBlend
impl RefUnwindSafe for LayerBlend
impl Send for LayerBlend
impl Sync for LayerBlend
impl Unpin for LayerBlend
impl UnsafeUnpin for LayerBlend
impl UnwindSafe for LayerBlend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.