euv-core 0.40.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
use super::*;

/// Half-domain extent in standard deviations covered by `GAUSSIAN_ERFC_LUT` (`[-3.2σ, +3.2σ]`).
pub(crate) const GAUSSIAN_LUT_RANGE: f32 = 3.2;

/// Number of intervals inside `GAUSSIAN_ERFC_LUT` (`512` intervals, `513` sample points).
pub(crate) const GAUSSIAN_LUT_SEGMENTS: usize = 512;

/// Inverse spacing `(512.0 / 6.4) = 80.0` mapping `u + 3.2` into table index space.
pub(crate) const GAUSSIAN_LUT_STEP_INV: f32 =
    (GAUSSIAN_LUT_SEGMENTS as f32) / (GAUSSIAN_LUT_RANGE * 2.0);

/// Compile-time 2 KB analytical Gaussian `0.5 * erfc(u / sqrt(2))` lookup table eliminating per-pixel `exp()` calls.
pub(crate) const GAUSSIAN_ERFC_LUT: [f32; 513] = build_gaussian_erfc_lut();

/// Maximum cached `TextLayoutResult` entries retained by `SoftwareRenderer` between frames.
pub(crate) const TEXT_LAYOUT_CACHE_LIMIT: usize = 512;

/// Thread name prefix assigned to persistent horizontal-band rasterization workers.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const BAND_WORKER_THREAD_PREFIX: &str = "euv-band";