Skip to main content

DEST_OUT_BLEND

Constant DEST_OUT_BLEND 

Source
pub const DEST_OUT_BLEND: BlendState;
Expand description

The fixed-function destination-out blend the punch pass draws with.

src · 0 + dst · (1 − src.a), applied to the colour and the alpha component — the COMPOSE_DEST_OUT arm of shaders/blend.wgsl evaluated for a premultiplied source, without the shader-side composite that arm would need a readable backdrop for. See crate::compile::clear’s module doc for why the erase is a destination-out composite rather than a clear op.