euv-core 0.47.1

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
1
2
3
4
5
6
7
8
9
10
11
/// Active browser rendering context acquired for an `HTMLCanvasElement`.
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum WebCanvasContextKind {
    /// Hardware WebGPU `GPUCanvasContext` (`navigator.gpu` + `getContext("webgpu")`).
    WebGpu,
    /// Hardware-composited WebGL2 `WebGL2RenderingContext` (`getContext("webgl2", ...)`).
    WebGl2,
    /// Last-resort software `CanvasRenderingContext2d` (`getContext("2d")`) when GPU contexts fail.
    #[default]
    Canvas2d,
}