euv-core 0.49.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
/// Pixel width and height of one base-level Hierarchical Z-Buffer cell (`8x8` pixels).
pub const HIZ_BASE_CELL_PX: usize = 8;

/// Default Nanite screen-space geometric error budget in pixels for continuous cluster DAG cuts.
pub const NANITE_DEFAULT_ERROR_THRESHOLD_PX: f32 = 1.25;

/// Minimum projected screen-space bounding area in square pixels below which distant micro-clusters are culled.
pub const NANITE_MIN_SCREEN_AREA_PX: f32 = 0.75;

/// Conservative reverse-Z depth bias scale preventing coplanar self-occlusion in `HiZPyramid`.
pub(crate) const HIZ_CONSERVATIVE_INV_W_SCALE: f32 = 1.003;

/// Conservative reverse-Z epsilon added to candidate nearest `1/w` before Hi-Z comparison.
pub(crate) const HIZ_CONSERVATIVE_INV_W_EPS: f32 = 1.0e-5;

/// Maximum cluster children grouped under one Nanite parent DAG node.
pub(crate) const NANITE_DAG_BRANCH_FACTOR: usize = 4;

/// Maximum triangle count rasterized per occluder during same-frame coarse Hi-Z pre-pass.
pub(crate) const HIZ_MAX_OCCLUDER_TRIS: usize = 256;

/// Maximum number of near-field solid occluders stamped into the same-frame Hi-Z pyramid.
pub(crate) const HIZ_MAX_PREPASS_OCCLUDERS: usize = 24;