euv-core 0.52.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
/// Sentinel texture slot index denoting no texture bound on GPU.
pub const GPU_MATERIAL_NO_TEXTURE: u32 = u32::MAX;

/// Expected byte size of `GpuMaterialData3D` matching std140 GPU storage buffer stride.
pub const GPU_MATERIAL_DATA_STRIDE_BYTES: usize = 160;

/// Bit flag in `GpuMaterialData3D::flags_volume[0]` indicating `AlphaMode3D::Mask`.
pub const GPU_MATERIAL_FLAG_ALPHA_MASK: u32 = 1 << 0;

/// Bit flag in `GpuMaterialData3D::flags_volume[0]` indicating `AlphaMode3D::Blend`.
pub const GPU_MATERIAL_FLAG_ALPHA_BLEND: u32 = 1 << 1;

/// Bit flag in `GpuMaterialData3D::flags_volume[0]` indicating `double_sided = true`.
pub const GPU_MATERIAL_FLAG_DOUBLE_SIDED: u32 = 1 << 2;

/// Bit flag in `GpuMaterialData3D::flags_volume[0]` indicating `KHR_materials_unlit`.
pub const GPU_MATERIAL_FLAG_UNLIT: u32 = 1 << 3;

/// Default Blender Principled BSDF dielectric Index of Refraction (`1.5`).
pub const PRINCIPLED_DEFAULT_IOR: f32 = 1.5;

/// Default glTF 2.0 alpha cutoff threshold for `AlphaMode3D::Mask`.
pub const PRINCIPLED_DEFAULT_ALPHA_CUTOFF: f32 = 0.5;

/// Default material display name when unnamed in source asset.
pub(crate) const PRINCIPLED_DEFAULT_NAME: &str = "PrincipledBSDF";