euv-core 0.55.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
/// Default decoded asset RAM ceiling (`256 MiB`).
pub const ASSET_STREAM_DEFAULT_RAM_BUDGET_BYTES: usize = 256 * 1024 * 1024;

/// Default resident GPU VRAM ceiling (`128 MiB`).
pub const ASSET_STREAM_DEFAULT_VRAM_BUDGET_BYTES: usize = 128 * 1024 * 1024;

/// Default cooperative main-thread decode ceiling per frame (`1.5 ms`).
pub const ASSET_STREAM_DEFAULT_MAX_DECODE_US: u64 = 1_500;

/// Default VRAM footprint for a `32x32` RGBA8 texture mip-tail (`4 KiB`).
pub(crate) const RESIDENCY_DEFAULT_MIP_TAIL_BYTES: usize = 4_096;

/// Projected screen-space pixel coverage threshold to promote a texture to `MidMip`.
pub(crate) const RESIDENCY_MID_MIP_COVERAGE_PX: f32 = 48.0;

/// Projected screen-space pixel coverage threshold to promote a texture to `FullRes`.
pub(crate) const RESIDENCY_FULL_RES_COVERAGE_PX: f32 = 192.0;

/// Near-camera projected coverage threshold for `FullRes` promotion.
pub(crate) const RESIDENCY_FULL_RES_NEAR_COVERAGE_PX: f32 = 96.0;

/// Near-camera distance threshold in meters for eager `FullRes` promotion.
pub(crate) const RESIDENCY_FULL_RES_NEAR_DIST: f32 = 12.0;

/// Deterministic system owner instance identifier registered in `ResourceAccountant`.
pub(crate) const RESIDENCY_DEFAULT_OWNER_ID: u64 = 0x5354_524D;

/// Error returned when an entry cannot fit even after full Clock-LRU demotion and eviction.
pub(crate) const ERR_RESIDENCY_BUDGET_EXCEEDED: &str =
    "residency: asset footprint exceeds configured RAM/VRAM budget";