euv-core 0.48.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
use super::*;

/// Pixel storage format of a shared GPU render target texture composited with the EUV HUD.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum GpuTextureFormat {
    /// 8-bit linear RGBA unsigned normalized texture.
    #[default]
    Rgba8Unorm,
    /// 8-bit sRGB-encoded RGBA texture.
    Rgba8UnormSrgb,
    /// 8-bit BGRA unsigned normalized swapchain/Metal/DXGI texture.
    Bgra8Unorm,
    /// 16-bit half-float linear HDR render target texture.
    Rgba16Float,
    /// 10-bit RGB + 2-bit alpha HDR10/wide-gamut render target texture.
    Rgb10A2Unorm,
}

/// Active presentation transport selected for a 2D or 3D `GameViewport`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum ViewportPresentPath {
    /// Direct same-device GPU texture compositing with EUV HUD in a single present pass (zero CPU readback).
    #[default]
    GpuDirectComposite,
    /// Bounded zero-allocation CPU output buffer pool fallback uploaded once per changed frame.
    CpuPooledFallback,
}