pub fn set_scissor_rect(rpass: &mut RenderPass<'_>, w: f32, h: f32, clip: Rect)Expand description
Applies one logical scissor rectangle at DPR 1.
An empty rectangle leaves the current render-pass scissor unchanged.
ยงExamples
use ailloli_ui_core::Rect;
use ailloli_ui_render_wgpu::passes::set_scissor_rect;
fn set(pass: &mut wgpu::RenderPass<'_>) { set_scissor_rect(pass, 100.0, 50.0, Rect::new(1.0, 2.0, 10.0, 10.0)); }