euv-example 0.48.1

Cross-platform native showcase application demonstrating euv fine-grained reactivity, multi-mode rendering, window controls, and euv-ui components.
Documentation
/// Strict Web showcase presentation mode separating true GPU direct draw, WebGL2 CPU upload, and Canvas 2D fallback.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ShowcaseWebPresentationPath {
    /// WebGL2 direct GPU primitive/uber-shader rendering (`cpu_mirror_active = false`).
    GpuDirect,
    /// WebGL2 uploading CPU-rasterized dirty rects (`precision highp float` + `texelFetch`, `cpu_mirror_active = true`).
    #[default]
    GpuUpload,
    /// Canvas 2D `putImageData` software fallback (`cpu_mirror_active = true`).
    Canvas2d,
}

/// Locked HTML5 `<canvas>` context family (a single `<canvas>` can NEVER bind both `WebGl2` and `Canvas2d`).
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ShowcaseWebCanvasContextFamily {
    /// Canvas locked to `webgl2` (`GpuDirect` or `GpuUpload`).
    #[default]
    WebGl2,
    /// Canvas locked to `2d` (`Canvas2d` fallback).
    Canvas2d,
}

/// Truthful browser presentation timing source for showcase rAF telemetry.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ShowcaseWebTimingSource {
    /// Browser `requestAnimationFrame` callback timestamp used strictly as a submission proxy (NOT hardware compositor proof).
    #[default]
    SubmissionProxy,
    /// Timing unavailable.
    Unobservable,
}