Skip to main content

Module portal_load_10d

Module portal_load_10d 

Source
Expand description

CPU decode for QualiaPortal load_10d (SurfaceReading + UV01 + MAT3/MAT4 + orbit-frame mesh). Lives outside the wasm-only portal facade so native tests can cover the colour/UV/MAT path. CPU decode for QualiaPortal load_10d.

Lives outside the wasm-only portal facade so native tests can cover the SurfaceReading colour buffer, UV01 stream, and MAT3/MAT4 records that load_10d uploads.

Structs§

Load10dGpuBuffers
Orbit-framed mesh buffers load_10d passes to GPU upload.

Functions§

decode_load_10d
Parse a sealed .10d into the GPU upload arguments QualiaPortal::load_10d uses.
upload_load_10d_to_gpu
Upload the decoded load_10d buffers. Authored MAT3/MAT4 is used when present; otherwise UV0 uses the legacy default material. Empty colors is the GPU grey default.
upload_load_10d_to_gpu_with_textures
Upload mesh plus optional PNG/KTX2 albedo (or other MAT maps). Texture failures skip the map; the mesh and vertex colour still draw.