euv_core/scene/damage/enum.rs
1/// Adaptive dirty-region submission strategy selected from disjoint rect count, coverage, and merge waste ratio.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum DirtyRectStrategy {
4 /// No damaged pixels exist in the viewport.
5 #[default]
6 Empty,
7 /// Upload or rasterize each disjoint rectangle independently to avoid merging distant regions.
8 MultiRect,
9 /// Coalesce dirty rectangles into a single tight bounding box because union waste is low.
10 MergedBbox,
11 /// Redraw or upload the full viewport because coverage exceeded the threshold or full damage was requested.
12 FullFrame,
13}