euv-core 0.52.0

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
14
15
16
17
/// Minimum supported lossless viewport DPI scale factor preserving sub-100% zoom cleanly.
pub const VIEWPORT_SCALE_MIN: f32 = 0.25;

/// Maximum supported lossless viewport DPI scale factor covering 4x Retina displays at up to 400% zoom.
pub const VIEWPORT_SCALE_MAX: f32 = 16.0;

/// Minimum single tile width or height in physical pixels when partitioning oversized surfaces.
pub const MIN_SURFACE_TILE_DIM: u32 = 64;

/// Default maximum single-surface texture dimension in physical pixels before tiling activates.
pub const DEFAULT_MAX_TEXTURE_DIM: u32 = 4096;

/// Sub-pixel logical viewport equality tolerance in logical pixels for resize change detection.
pub const VIEWPORT_LOGICAL_EPSILON: f64 = 1.0e-3;

/// Default maximum single-surface pixel area (`4096 x 4096 = 16.7 MP`) before tiling activates.
pub const DEFAULT_MAX_SURFACE_AREA: u64 = 16_777_216;