Expand description
WebGPU renderer (PortalGpu) — depth, bloom, tensor-node projection, mesh surfaces.
Cross-platform WebGPU viewport for the Qualia renderer SDK.
Phenomenal viewport: projector (depth write) → ambient → optional T2 Kawase bloom.
Re-exports§
pub use holographic::HolographicNodeGpu;pub use holographic::HolographicPrimitive;pub use mesh_slab::MeshSlabArenaGpu;pub use mesh_slab::ProceduralSynthesisGpu;pub use frame_lock::*;
Modules§
- emf_
cue_ bridge - GPU Uniform/Voxel Packer for EMF, Acoustic & Physical Field Cues (
BS-40). - frame_
lock - Deterministic 64-Byte UDP Multicast Frame-Lock & Conical Frustum Slicing Protocol.
- holographic
- Holographic 3D Engine for Semantic Graphs — Procedural Volumetric Light Field.
- ibl_
cubemap - Zero-Heap Procedural IBL Cubemap Generator & GGX Specular Prefilter (Pure Rust).
- indirect_
cull - Canonical indirect visibility, HZB and multi-representation stream delegation.
- mesh_
slab - Semantic procedural header adapter and universe admission for canonical slab residency.
- residency_
budget - Residency metadata is maintained by Etalon; Qualia owns resource policy and lifetime.
Structs§
- Alpha
Coverage Diagnostics - Bounded prediction for cutoff coverage after RGBA8 quantization of each generated mip.
- Cluster
Grid Params Gpu - 112-byte uniform block for
CLUSTER_LIGHT_WGSL(16 x 9 x 24 = 3456frustum clusters). - Cluster
Light Pipeline Gpu - Active GPU compute pipeline owner for 3D Clustered Light Culling (
CLUSTER_LIGHT_WGSL). - Compute
Binding - One buffer binding descriptor for a compute dispatch.
- Csm4
Shadow Uniform - 4-Cascade Cascaded Shadow Map (CSM) GPU uniform block (288 bytes) with practical split distances and smooth inter-cascade blend band parameters.
- Cull
Uniforms Gpu - Uniform buffer layout for
instance_cull_indirect.wgsl(288 bytes). - Deferred
Spectral Resolve Pipeline Gpu - Active GPU compute pipeline owner for Continuous EMF Spectral Deferred Resolve (
DEFERRED_RESOLVE_WGSL). - Dielectric
Volume IopGpu - 64-byte Inherent Optical Properties (IOP) descriptor mirroring
DielectricVolumeIopinHYDROLOGIC_OPTICS_WGSL. - Draw
Indexed Indirect Command - WebGPU-standard 20-byte
DrawIndexedIndirectcommand payload. - EmfField
Cell - Per-cell field data uploaded to the GPU storage buffer.
- EmfPipeline
- Complete, decoupled GPU state for EMF wave slice visualization.
- EmfPipeline
Desc - High-level descriptor for constructing the EMF visualization pipeline.
- EmfSlice
Uniform - Slice parameter uniform (64 bytes, std140-aligned).
- Foliage
LodPipeline Gpu - Active GPU compute pipeline owner for Continuous Multi-Scale Foliage LOD (
FOLIAGE_LOD_WGSL). - Holographic
Pipeline Gpu - WebGPU pipeline wrapper for the Holographic 3D Engine.
- HzbPyramid
View - Lightweight zero-heap view over a 2-phase Hierarchical Z-Buffer (HZB) mip chain.
- IblCubemap
Generator - GPU-resident cubemap IBL generator and prefiltered environment probe state.
- IblCubemap
Params - Uniform parameters for
IblCubemapGenerator(64 bytes). - Indirect
Cull Pipeline Gpu - GPU-resident compute pipeline and indirect stream buffers for
INSTANCE_CULL_INDIRECT_WGSL. - Indirect
Cull Stream Counts - Output stream counts produced by
cull_and_select_lod_indirect_zero_heap. - Instance
Cull Descriptor - GPU-aligned per-instance culling & multi-modal routing descriptor (80 bytes,
5 x vec4). - Mesh
Slab Arena Descriptor - Capacity configuration for
MeshSlabArenaGpu. - Mesh
Slab Vertex - 64-byte interleaved vertex record inside
MeshSlabArenaGpu::vertex_buffer. - Portal
Gpu - Resident
Asset Entry - 112-byte multi-modal resident asset entry tracking 4 LOD tiers and
.10dPROC/EONT/SURF/IMPObindings. - Shadow
Atlas Allocator - Zero-heap tile allocator for a square spot/point light shadow atlas (e.g.
2048x2048split intogrid_dim x grid_dimtiles). - Skin
Attr Vertex - 24-byte skeletal skinning vertex attribute record (
JOINTS_0+WEIGHTS_0). - Slab
Range - Contiguous free span
[offset .. offset + length)inside a GPU buffer slab. - Slab
Range Allocator - Zero-heap first-fit range sub-allocator with immediate bidirectional coalescing.
- Spot
Point Shadow Atlas Slot - Tile slot in a local spot/point light shadow atlas.
- Submesh
Slice - Temporal
Producer Availability - Explicit availability report for the renderer/host temporal handoff.
- Temporal
Producer Views - Producer views supplied by a host for one temporal frame.
- Temporal
Resolve Gpu - Temporal
Resolve Inputs - Real producer views required to admit a temporal resolve.
Enums§
- Asset
Representation Kind - Typed representation archetype for a LOD tier in
ResidentAssetEntry. - Compute
Buffer Kind - Kind of buffer to bind at a compute binding slot.
- Mesh
Instance Upload Error - Representation
Policy - Multi-modal representation policy encoded in
InstanceCullDescriptor::rep_policy. - Temporal
Submission State - Command-recording lifecycle for one renderer-owned temporal submission.
- Texture
Color Space - Texture
MipSemantic - Texture
Upload Error
Constants§
- CSM_
4_ CASCADE_ COUNT - EMF_
VOLUMETRIC_ WGSL - Raw WGSL shader source for the EMF volumetric visualizer.
- IBL_
CUBEMAP_ CONVOLVE_ WGSL - WGSL compute shader for 6-face procedural sky cubemap generation, diffuse irradiance convolution, 5-mip GGX importance-sampled specular prefiltering, and split-sum BRDF integration.
- MAX_
GPU_ MATERIAL_ DRAWS - Maximum ordered material draws admitted for one resident mesh in the portable renderer.
Functions§
- build_
hzb_ mip_ chain_ zero_ heap - Returns
(total_texels_written, mip_slices, mip_count). - camera_
csm_ 4_ sun_ view_ projections - Computes 4 texel-snapped orthographic sun view-projection matrices for 4-cascade CSM.
- checked_
field_ bytes - Bounded byte size calculation for a given cell count.
- checked_
grid_ cell_ count - Bounded calculation of field cell memory requirements.
- compute_
csm_ 4_ splits_ zero_ heap - Practical Split Scheme (PSSM) 4-cascade logarithmic/uniform split distances: $$z_i = \lambda , n \left(\frac{f}{n}\right)^{i/4} + (1 - \lambda)\left(n + (f - n)\frac{i}{4}\right), \quad i \in {1, 2, 3, 4}$$
- csm_
cascade_ blend_ factor - Computes the active cascade index (
0..3), next cascade index (0..3), and smooth transition blend weight $\alpha \in [0, 1]$ across the cascade overlap band (blend_band_fraction, e.g.0.10) to eliminate hard CSM split seams. - cubemap_
face_ uv_ to_ direction - Maps a cubemap face index (
0..=5for+X, -X, +Y, -Y, +Z, -Z) and normalized face coordinatesuvin[-1.0, 1.0]^2to a unit world-space direction vector. - cull_
and_ select_ lod_ indirect_ zero_ heap - Zero-heap CPU/GPU parity execution of 6-plane frustum culling, 2-phase HZB depth-pyramid occlusion culling, 4-tier hybrid LOD selection with hysteresis, and multi-modal stream routing.
- emf_
cells_ from_ loaded - Convert all cells of an admitted
LoadedEmfinto GPUEmfFieldCellstorage. - emf_
field_ cell_ from_ display - Fixed grayscale display derivative; exact f64 observations stay in the retained source.
- emf_
field_ cell_ from_ optical - Convert paired scalar and optical/polarimetric display cells into a GPU cell.
- emf_
field_ cell_ from_ record64 - Convert one
Q42EMF64scientific 64-byte cell record directly intoEmfFieldCell. - eval_
procedural_ sky_ radiance_ zero_ heap - Evaluates the procedural Rayleigh + Henyey-Greenstein Mie sky radiance in direction
diron the CPU with zero heap allocations (HotZeroHeap). - evaluate_
display_ slice_ rgba8 - CPU slice evaluator with parity to GPU
EmfSliceUniform::projection_mode(0= full volumetric spectral + Stokes,1= nearest-cell grayscale|E|derivative). - full_
spectrum_ sigma_ to_ linear_ rgb - Full-spectrum 6-band linear sRGB evaluator matching WGSL
sigma_to_linear_rgb(0=CIE 1931 visible,1=RF,2=IR,3=UV,4=X-Ray,5+=Gamma). - integrate_
split_ sum_ brdf_ zero_ heap - Evaluates the split-sum BRDF integration $(s, b)$ at
(n_dot_v, roughness)using Hammersley GGX importance sampling with zero heap allocations (HotZeroHeap). - particle_
cap_ for_ mode ?::particle_cap_for_mode.- select_
lod_ tier_ with_ hysteresis - Selects the 4-tier LOD index (
0..=3) from an epistemic-weighted screen-space projected radius in pixels, applying a fractional hysteresis deadband around threshold transitions.