v0.0.41 Architecture: Etalon Device Lifecycle, Multi-Physics & Recovery
For visitors exploring what QualiaDB renders and for graphics engineers inspecting the frame pipeline: the 0.0.41 architecture unifies the pure-Rust Etalon GPU accelerator, simulation, and signal-processing crates across native desktop (Vulkan/DX12/Metal) and browser WebGPU (wasm32-unknown-unknown). Device stewardship enforces foreign device/queue rejection, retained-device liveness checks, stale readback refusal, and deterministic cancellation cleanup. Browser qualification covers shared and transferable worker transports, teardown, real device loss, and fresh-device render/pick/compute recovery while preserving retained scene geometry across DOM canvas replacement.
See the 0.0.41 release architecture overview and the interactive Etalon & Vibe Browser Harness.
Interactive Etalon 10D, SDF Raymarching, PGA Rigging & Environment Simulation Studio
Mode 1 · 10D Manifold & SDF Torus Raymarcher
Evaluates render.spatial.sdf_torus_eval, project_10d_to_3d, and brep_euler_characteristic in WebAssembly.
Live VibeScript Graphics & DSP Expression Runner (eval_program_with_receipt_wasm) + Active Shader Source
Compiling shader…
Evaluating…
Waiting for receipt…
Temporal Reconstruction & Live Motion Producers
The engine provides continuous temporal anti-aliasing and history accumulation across frames without heap allocations in the render loop. Dedicated GPU attachments store screen-space motion vectors (Rg16Float) and surface reactivity masks (R8Unorm), computing camera reprojection deltas and clamping disoccluded neighbourhood history to eliminate ghosting on fast-moving or translucent geometry.
Screen-Space Motion Vectors
Reconstructs world-space position from scene depth and projects into previous camera view-projection coordinates:
Reactive History Rejection
Dynamically suppresses history ghosting across transparent water surfaces, alpha-cutout vegetation, and high-velocity particles:
Image-Based Lighting & Specular Environment Probes
Provides localized diffuse irradiance and roughness-aware specular reflections via prefiltered cubemap probes. Packaged into a fixed 544-byte uniform buffer (EnvironmentLightingGpu) bound to material group 2, supporting smooth Hermite distance attenuation between indoor and outdoor probe volumes with deterministic fallback lighting.
Diffuse Irradiance
Illuminates unlit and shadowed meshes according to local spatial spherical harmonics.
Metallic Reflections
Mipmapped roughness LODs provide sharp mirror reflections down to soft matte reflections.
Distance Falloff
Hermite polynomial weight curves smoothly blend between overlapping indoor and outdoor probes.
Zero-Heap KTX2 Block Transcode Bridge
Zero-allocation texture transcoding operating entirely inside caller-supplied &mut [u8] slices. Directly decodes compressed GPU texture blocks into hardware-native formats or linear RGBA8 surfaces without intermediate heap allocation.
Etalon Pure-Rust GPU & Simulation Stack + 10D Volumetric Engine
In QualiaDB 0.0.41, the pure-Rust Etalon accelerator, rendering, multi-physics, and signal ecosystem is integrated end-to-end across qualia-core-db, webizen-render, webizen-web, and qualia-etalon-sensing-bridge. QualiaDB retains ontological semantics, policy, and custody authority while Etalon owns reusable GPU execution, shader certification, and physical continuum solvers.
1. Etalon Crate Architecture
Direct hardware WebGPU, Vulkan, DX12, and Metal device substrate. Powers SharedGpuContext and PortalGpu with capability-intersected limits (f16, subgroup ops, timestamp queries) and foreign-queue rejection.
Provides EmfPipeline, EtalonVolumetricPipeline, 160-byte FrameCameraPod, 48-byte ManifoldProjectionPod, and the zero-heap 128-node UiLayoutTree Flexbox HUD layout engine.
Coupled 3D Yee-grid FDTD electromagnetics (ETA-15), 2D Shallow Water Equations (swe_solver), XPBD rigid/soft-body dynamics, Rank-2 Cauchy stress fracture, and continuum geomechanics.
Radix-2 FFT/STFT spectral pipelines, spherical-harmonic ambisonic encoding, HRTF binaural synthesis, and calibrated sensor signal conditioning feeding qualia-etalon-sensing-bridge.
Typed KernelSpec + Schedule IR compiler. Validates shaders via Naga AST and certifies GPU dispatches against the independent CPU reference oracle (ETA-14) across WGSL, SPIR-V, HLSL, and MSL.
Single-submit 8-pass LSD GpuRadixSorter and warp-transposed uvec4 GpuQuinSieve operating on 48-byte NQuinWire records with bitwise CPU-oracle parity verification (ETA-17).
WorkerSteward automatic transport negotiation (zero-copy SharedArrayBuffer under COOP/COEP vs transferable fallback), OffscreenCanvas lifecycle, and WebGPU device-loss recovery.
HalComputeLane, QualiaSlabAllocator, SubmissionLease state machine, and ForwardArena / FusedAttentionPipeline for bounded-memory execution.
2. 3D FDTD Electromagnetics (ETA-15) & Sensing Sidecar Custody (ETA-16)
3D FDTD Maxwell Solver & CFL Guard (ETA-15)
etalon-sim steps coupled electric ($\mathbf{E}$) and magnetic ($\mathbf{H}$) fields on a staggered 3D Yee lattice for electromagnetic and wave-optical .emf (EMF64) volumes. Before any GPU or CPU step executes, the solver enforces the strict 3D Courant–Friedrichs–Lewy (CFL) stability condition ($c \Delta t \sqrt{\Delta x^{-2} + \Delta y^{-2} + \Delta z^{-2}} \le 1$) and verifies discrete Poynting energy conservation:
Super-luminal or unstable timestep configurations fail closed prior to buffer dispatch, guaranteeing bounded electromagnetic energy across long-running simulations.
Sensing Sidecar Custody Bridge (ETA-16)
Physical sensor, radio, and NFC frames captured via Etalon (ObservationEnvelope) are bridged into QualiaDB through qualia-etalon-sensing-bridge. Rather than trusting raw peripheral bytes, the bridge requires explicit host BridgeAuthority confirmation and enumerates observations into 5-field XOR parity-verified NQuins split across the Identifier Fabric planes:
Preserves the full sidecar observation envelope (calibration artifact ID, clock restart epoch, and spectral coverage) alongside the compact 48-byte NQuin index.
3. 10D Volumetric Containers (Container10D, M64, EMF64) & Semantic QEM
.10d)
64-byte aligned living spatial container uniting PROC1 (CSG/SDF procedural synthesis), EONT1 (embedded 48-byte NQuin ontological rules & custodial affordances), MRP1 (quantized morph deltas), and SKL1 (Projective Geometric Algebra $\mathbf{Cl}(3,0,1)$ motor rigs).
M64 (Matter-64) encodes physical material strata, hydro-enforced DEM elevation chunks, and point clouds; EMF64 (.emf) stores 64-byte aligned electromagnetic, optical, and acoustic wavefield tensors stepped by etalon-sim and rendered by EmfPipeline.
Quadric Error Metric (QEM) mesh simplification augmented with ontological boundary weights: edges separating distinct EONT1 semantic classes, anatomical layers, or custodial zones receive elevated penalty weights so LOD decimation never collapses ontological boundaries.
4. Cross-Platform VolumetricRenderer (Native & WASM32)
webizen-render::VolumetricRenderer runs across both desktop native and wasm32-unknown-unknown browser targets. Initialized via from_canvas on HTML canvas or from_portal_gpu on shared GPU contexts:
Integrates volumetric_hmc (Hamiltonian Monte Carlo volumetric sampling) and volumetric_texture 3D density sampling with zero per-frame heap allocations.
5. Zero-Heap Flexbox HUD Layout Engine
QualiaHud::layout_items_flex is powered by etalon_render::hud::UiLayoutTree, a stack-allocated Flexbox engine with an immovable limit of 128 nodes (MAX_HUD_LAYOUT_NODES = 128):
Calculates exact pixel bounds for responsive gauges, dials, holographic buttons, and rear-view mirrors without calling the system allocator.
6. The 10-Epic Scene Graph & Character Simulation Engine (scene_graph_10d)
64-byte aligned container with PROC1 (CSG/SDF procedural ops), EONT1 (embedded 48-byte NQuin ontology rules), MRP1 (quantized morph targets), and SKL1 (PGA motor skeleton rigs).
Artifact-free skeletal deformation using Projective Geometric Algebra ($\mathbf{Cl}(3,0,1)$) Motor dual-quaternion blending ($\mathbf{M} = \sum w_i \mathbf{M}_i$) via auto-generated WGSL compute kernels.
2D Delaunay triangulation blend spaces for locomotion directions + 4-layer Animation Blueprint State Machines with inertialization transitions.
Analytic hinge/pole solver for elbows/knees paired with 8-iteration forward/backward FABRIK chain solver and ground-raycast foot conformation.
Substepped Gauss-Seidel Extended Position-Based Dynamics with compliant Cosserat rods and Rank-2 Cauchy stress tensor cleavage along principal failure planes.
Spherical-harmonic wavefield audio synthesis with physical acoustic diffraction, modal impact resonance, bow-string friction, and Gerstner wave audio harmonics.
Water Shoreline Foam & Depth Disparity Blending
Water surfaces preserve authoritative scene depth for opaque geometry while evaluating optical depth differences in the fragment shader. Where the vertical disparity between the Gerstner wave surface and underlying terrain bathymetries is small, shoreline foam, capillary ripples, and Beer–Lambert absorption are synthesized automatically.
Dynamic Collider Deflection & Instanced Foliage
The VegetationInstancePool simulates character and vehicle interaction, Hookean spring-damper recovery, and directional wind oscillation directly into 128-byte GpuInstanceRecord slices. Bodies bending grass and foliage leave responsive trails that spring back realistically without mutating shared GPU vertex buffers.
Differential 3D Video Codec & Holosonic Spatial Audio
Engineered for real-time volumetric streaming and spatial immersion, QualiaDB introduces a differential 3D video compression pipeline paired with a first-principles wave-acoustics audio synthesizer. By computing temporal delta frames directly over high-density point clouds and mesh topologies via WebGPU compute shaders, streaming bandwidth is reduced by up to 87% compared to raw keyframe transmission.
Differential 3D Codec (WGSL Shaders)
Real-time point-cloud and surfel motion vectors are computed using temporal_warp.wgsl and compacted via tile_compaction.wgsl into GPU-resident run-length encoded delta packets. Keyframes are injected adaptively when scene disocclusion or sudden topology mutations exceed threshold bounds.
Holosonic Spatial Ambisonics & HRTF
QualiaDB synthesizes 3D wavefields directly in zero-heap hot loops using spherical harmonics and spherical head-related transfer functions (HRTF). Emitted acoustic pressures diffract around simulated geometry and surface boundaries, ensuring physical consistency with visual geometry.
Holosonic Water Wave Harmonics (Gerstner & Trochoidal)
Synchronized with render/water.rs, the holosonic pipeline produces acoustic ocean spray and sub-surface acoustic propagation using Gerstner wave displacement harmonics calculated in lockstep with the visual vertex shader.
Etalon Silicon Steward, 10D Living Containers & EcoPunk Biological Continuum
Etalon Pure-Rust Accelerator Stack
Backed by etalon, etalon-render (volumetric/EMF/HUD substrate), etalon-sim (3D FDTD Maxwell & 2D SWE continuum physics), etalon-signal (wavefield DSP & sensor conditioning), etalon-wgsl-forge (deterministic Naga shader validation & multi-target emission), etalon-nquin (48-byte GPU warp-scan sieve & LSD radix sort), and etalon-wasm (OffscreenCanvas worker steward). Feature-gated under gpu-runtime so wasm-ontology stays below 800 KiB while portal and wasm-full ship full hardware WebGPU acceleration.
.10d, M64 & EMF64 Containers + Semantic QEM
Zero-heap generational 10D scene graph (NodePool, Container10D, M64, EMF64) with PROC1 procedural synthesis (Voronoi cellular micro-relief, smooth-min SDFs, Huxley allometry, PGA motor wind oscillation), EONT1 ontogenetic stages & custodial affordances, Semantic QEM decimation preserving ontological boundaries, hardware GPU PGA Motor dual-quaternion skinning (GpuJointMotorPair), and 4-tier hybrid indirect culling (MeshSlabArenaGpu).
EcoPunk Continuum & 5-Scale Dissection Lab
Drives the 26.5 km East Coast Australia RegionalCorridorWorld (8 study sites, HermiteCorridorSegment road conformation, 64 Hz 4WD rover & 3D capsule walker with Bekker soil sinkage and Archimedes river buoyancy) and 5-Scale Botanical/Zoological Education Lab (Pipe-Model trees + lignotuber roots, 6-layer stem/bark wedge, Myrtaceae flower & gumnut anthesis dissection, Murray's Law venation + stomatal histology, and 3-layer vertebrate osteology/myology) via 18 deterministic vibe-0.1 capabilities compiled to .qbc bytecode.
Browser WebGPU & WebGL2 ES 3.0 Live Hardware Probe
Real-time inspection of your client browser's Desktop WebGPU adapter and Mobile/Desktop WebGL2 (#version 300 es) capabilities.