euv-core 0.47.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
/// Pixel storage format for GPU atlas and image dirty-rect texture uploads.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum GpuAtlasPixelFormat {
    /// Single-channel 8-bit coverage mask used for monochrome alpha glyph atlases (`R8Unorm`).
    #[default]
    R8Unorm,
    /// Four-channel 8-bit premultiplied RGBA texture used for color emoji atlases and images (`Rgba8Unorm`).
    Rgba8Unorm,
}

/// 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,
}