pub fn push_rrect_scaled(
out: &mut Vec<RRectVertex>,
w: f32,
h: f32,
scale: Scale,
rr: DrawRRect,
)Expand description
Appends a rounded-rectangle SDF quad in physical-pixel geometry.
Logical bounds and radius are multiplied by DPR; size is clamped to at least one and radius to at least zero before being copied to all six vertices.
ยงExamples
use ailloli_ui_core::math::Scale;
use ailloli_ui_render_wgpu::passes::push_rrect_scaled;
use ailloli_ui_runtime::DrawRRect;
fn build(shape: DrawRRect) { let mut out = Vec::new(); push_rrect_scaled(&mut out, 20.0, 20.0, Scale::new(2.0), shape); assert_eq!(out.len(), 6); }