euv-core 0.52.1

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

/// Default minimum dirty or live node count required before promoting a subtree to GPU compute layout.
pub const DEFAULT_MIN_GPU_SUBTREE_NODES: usize = 512;

/// Maximum fraction of wrapping text nodes tolerated inside a GPU-eligible layout subtree (`15%`).
pub const DEFAULT_MAX_GPU_TEXT_WRAP_RATIO: f32 = 0.15;

/// Default maximum tree depth supported by level-synchronous GPU compute passes.
pub const DEFAULT_MAX_GPU_SUBTREE_DEPTH: usize = 32;

/// Dirty-flag bitmask covering layout, structural child, and text changes tracked during subtree partitioning.
pub(crate) const SUBTREE_LAYOUT_DIRTY_MASK: u16 = (DIRTY_LAYOUT | DIRTY_CHILDREN) | DIRTY_TEXT;