euv-core 0.46.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
/// Priority class governing bounded GPU staging ring backpressure when all slots are in flight.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum GpuUploadPriority {
    /// Upload required to present the active frame's visible content.
    #[default]
    RequiredFrame,
    /// Speculative route prefetch or offscreen warm-up upload droppable under ring pressure.
    OptionalPrefetch,
}

/// Result of acquiring a bounded staging slot from `GpuResourceRing`.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum GpuRingAcquireResult {
    /// A staging slot was acquired and tagged with `fence_id`.
    Acquired {
        /// Index into `GpuResourceRing::slots`.
        slot_index: usize,
        /// Monotonic GPU fence associated with this submission.
        fence_id: u64,
        /// True when an existing backing buffer was reused without reallocating.
        reused: bool,
    },
    /// All ring slots are in flight; an optional prefetch upload was dropped to protect the active frame.
    DroppedPrefetchRingFull,
    /// All ring slots are in flight; a required frame upload must wait for a fence completion instead of growing unboundedly.
    DeferredFrameRingFull,
}