pub fn encode_blurred_rounded_rect(
rect: Rect,
radii: CornerRadii,
std_dev: f64,
color: Color,
transform: Affine,
encoded_paints: &mut Vec<EncodedPaint>,
) -> PaintExpand description
Encode a blurred rounded rectangle into encoded_paints, returning the
paint the draw that rasterizes inflated_bounds references.
radii collapses through CornerRadii::largest — see the module doc’s
“Radius arity” section for why. transform is the paint transform in
effect for the draw, the same composed transform the coverage rectangle
is rasterized under; BlurredRoundedRectangle::encode_into folds its
inverse into the encoded entry, which is the direction the shader samples
in.
Unlike an image, this can never fail: every field a
Command::BlurredRoundedRect
carries reaches here already checked finite by
[super::check_geometry], and vello_common’s own encoding clamps a
degenerate radius or a vanishing standard deviation internally rather
than refusing them — so, unlike crate::compile::paint::encode_brush’s
image arm, there is no skip case for a caller here to route around.