euv-core 0.53.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
/// Memory residency domain occupied by a managed runtime asset.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum AssetStorageKind {
    /// Asset resides solely in CPU RAM cache.
    #[default]
    Ram,
    /// Asset resides solely in GPU VRAM (texture/buffer).
    Vram,
    /// Asset maintains both a CPU staging buffer and a GPU VRAM allocation.
    Hybrid,
}

/// Lifecycle state of an entry tracked inside `AssetManager`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum AssetLoadState {
    /// Load request is in flight and cancelable before completion.
    #[default]
    Pending,
    /// Asset payload is resident and ready for immediate lookup.
    Ready,
    /// Pending load request was canceled prior to completion.
    Canceled,
    /// Resident asset was evicted to enforce RAM or VRAM budgets.
    Evicted,
}

/// Error returned by `AssetManager` budget, cancellation, or handle validation checks.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum AssetError {
    /// Asset footprint exceeds available RAM or VRAM budget after evicting all unpinned entries.
    ExceedsBudget,
    /// Pending load handle was canceled before completion.
    Canceled,
    /// Handle slot or generation does not match a live entry.
    InvalidHandle,
}