Expand description
PNG/KTX2 ingest for load_10d materials. Decode budgets are not the Prolog sentinel.
PNG/KTX2 ingest for QualiaPortal load_10d materials.
Texture payloads stay outside .10d (HMC/deps). This helper turns caller-
supplied encoded bytes into GPU RGBA, or skips when KTX2/BasisU transcode
is refused. Decode budgets are caller-owned and separate from the 42 MiB
Prolog/SlgArena sentinel.
Re-exports§
pub use crate::render::material_compile::compile_10d_pbr;
Structs§
- Decoded
Portal Rgba8 - Decoded tightly packed RGBA8 ready for GPU upload.
- Packed
PbrSet - Optional albedo + metallic-roughness PNG/KTX2 set for
compile_10d_pbr. - Packed
PbrTexture - Content-addressed encoded texture ready to bind onto a MAT3/MAT4 slot.
Enums§
- Portal
Texture Error - Portal
Texture Ingest - Ingest outcome. Transcode-only KTX2/BasisU is skipped, never panicked.
Constants§
- PORTAL_
TEXTURE_ DECODE_ LIMITS - Portal image decode ceiling. Independent of the 42 MiB Prolog sentinel.
Functions§
- detect_
texture_ mime - Identify PNG / JPEG / KTX2 from the file magic. No new container magics.
- ingest_
portal_ texture - Decode PNG/JPEG/uncompressed KTX2 to RGBA8. BasisU/block KTX2 is skipped.
- material_
references_ digest - True when
digestoccupies any MAT texture slot. - pack_
pbr_ set - Hash and signature-check encoded PBR maps. Payloads stay encoded (HMC-shaped).
- upload_
portal_ texture_ rgba8 - Upload decoded RGBA into the TextureResidency ledger (not the Prolog sentinel).