euv-core 0.46.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
14
15
16
17
use super::*;

/// Lazily initialized process-wide persistent worker pool for zero-spawn multi-core horizontal band rasterization.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static BAND_WORKER_POOL: OnceLock<BandWorkerPool> = OnceLock::new();

thread_local! {
    /// Per-thread reusable scratch buffers for rounded-clip corner save/restore eliminating per-band allocations.
    pub(crate) static BAND_CORNER_SCRATCH: RefCell<BandCornerScratch> =
        RefCell::new(BandCornerScratch::default());
    /// Per-thread reusable 1D horizontal shadow strip scratch buffers eliminating per-shadow allocations.
    pub(crate) static BAND_SHADOW_SCRATCH: RefCell<BandShadowScratch> =
        RefCell::new(BandShadowScratch::default());
    /// Per-thread reusable fixed-point horizontal bilinear sampling LUT for `raster_image` and `raster_sprite_region`.
    pub(crate) static BAND_IMAGE_X_LUT: RefCell<Vec<(usize, usize, u32)>> =
        const { RefCell::new(Vec::new()) };
}