euv-core 0.56.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::*;

/// Interpolatable vertex attribute bundle carried through subdivision stencils.
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub(crate) struct SubdivVertex {
    /// Local-space 3D position.
    #[get(type(copy))]
    pub(crate) position: Vec3,
    /// Primary UV coordinate.
    #[get(type(copy))]
    pub(crate) uv0: [f32; 2],
    /// Secondary UV coordinate.
    #[get(type(copy))]
    pub(crate) uv1: [f32; 2],
    /// Linearized floating-point RGBA color.
    #[get(type(copy))]
    pub(crate) color: [f32; 4],
    /// Attribute bitmask flags.
    #[get(type(copy))]
    pub(crate) flags: u32,
}

/// Polygonal face with material slot used by Catmull-Clark quad-dominant subdivision.
#[derive(Clone, Data, Debug)]
pub(crate) struct PolyFace {
    /// Ordered CCW vertex indices around the face loop.
    pub(crate) vertices: Vec<u32>,
    /// Preserved material slot index from the source mesh.
    #[get(type(copy))]
    pub(crate) material_slot: u16,
}