euv-core 0.56.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
/// Thread name prefix for dedicated native asynchronous asset streaming I/O workers.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const STREAM_DECODER_THREAD_PREFIX: &str = "euv-stream-io";

/// Minimum background worker thread count on native platforms.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const STREAM_DECODER_MIN_WORKERS: usize = 2;

/// Maximum background worker thread count on native platforms to avoid starving render threads.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const STREAM_DECODER_MAX_WORKERS: usize = 4;

/// Cooperative chunk granularity in uncompressed bytes decoded per time-slice check (`64 KiB`).
pub(crate) const STREAM_COOPERATIVE_CHUNK_BYTES: usize = 64 * 1024;

/// Compact 8-byte binary header signature for pre-cooked streamable RGBA8 texture mip payloads.
pub(crate) const STREAM_TEX_HEADER_MAGIC: [u8; 8] = *b"EUVTEX01";

/// Fixed byte length of the `EUVTEX01` pre-cooked texture mip header.
pub(crate) const STREAM_TEX_HEADER_BYTES: usize = 20;

/// 4-byte PNG signature prefix for automatic raster image detection.
pub(crate) const STREAM_PNG_MAGIC: [u8; 4] = [0x89, b'P', b'N', b'G'];

/// 2-byte JPEG SOI marker prefix for automatic raster image detection.
pub(crate) const STREAM_JPEG_MAGIC: [u8; 2] = [0xFF, 0xD8];

/// 5-byte `.euv3d` baked mesh package signature prefix.
pub(crate) const STREAM_EUV3D_MAGIC: [u8; 5] = *b"EUV3D";

/// Estimated OS syscalls (`open` + `read`) avoided per `.euvpak` virtual filesystem lookup.
pub(crate) const STREAM_SYSCALLS_SAVED_PER_LOOKUP: u64 = 2;

/// Error returned when a streaming decode runs without a mounted `.euvpak` archive.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ERR_STREAM_NO_VFS: &str = "streaming: no mounted euvpak archive";

/// Error returned when a requested 64-bit asset hash is not present in the mounted `.euvpak`.
pub(crate) const ERR_STREAM_MISSING_ENTRY: &str = "streaming: requested key missing from euvpak";

/// Error returned when a streaming decode job aborts due to atomic cancellation.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ERR_STREAM_CANCELLED: &str = "streaming: job cancelled before completion";

/// Error returned when a pre-cooked `EUVTEX01` payload has truncated dimensions or byte length.
pub(crate) const ERR_STREAM_INVALID_TEXTURE: &str = "streaming: invalid texture mip payload";