euv-core 0.51.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
/// Color-space interpretation of a 3D texture during mipmap filtering and shader sampling.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum TextureColorSpace {
    /// Gamma-encoded sRGB color data (albedo, emissive, sheen color).
    #[default]
    Srgb,
    /// Linear scalar/color data (metallic-roughness, occlusion, clearcoat, transmission).
    Linear,
    /// Tangent-space normal map (`[0..255] -> [-1..1]`, re-normalized across mip levels).
    NormalTangent,
}

/// Texture sampling filter mode aligned with glTF 2.0 / WebGL constants.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum TextureFilterMode {
    /// Nearest-texel sampling (`9728`).
    Nearest,
    /// Bilinear texel interpolation (`9729`).
    #[default]
    Linear,
    /// Nearest texel within nearest mip level (`9984`).
    NearestMipmapNearest,
    /// Bilinear texels within nearest mip level (`9985`).
    LinearMipmapNearest,
    /// Nearest texel blended between adjacent mip levels (`9986`).
    NearestMipmapLinear,
    /// Trilinear filtering across adjacent mip levels (`9987`).
    LinearMipmapLinear,
}

/// Texture coordinate wrap behavior aligned with glTF 2.0 / WebGL constants.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum TextureWrapMode {
    /// Tile seamlessly modulo 1.0 (`10497`).
    #[default]
    Repeat,
    /// Clamp coordinates to `[0.0, 1.0]` (`33071`).
    ClampToEdge,
    /// Reflect coordinates symmetrically on odd tiles (`33648`).
    MirroredRepeat,
}