Skip to main content

adjust_indirect_pattern_resolution

Function adjust_indirect_pattern_resolution 

Source
fn adjust_indirect_pattern_resolution(
    local_rect: &LayoutRect,
    max_device_size: f32,
    device_rect: &mut DeviceRect,
    indirect_transform: &mut ScaleOffset,
)
Expand description

Adjust the transform and device rect until the latter fits the provided maximum size. Also ensure that near-zero size tasks do are at least