render3d: the deterministic work as bytes a bake keeps, and the textures made from them

Each pair runs the work as the renderer always has and reads the result back, or makes the same
textures and fills them from bytes instead: impostor_bytes / impostor_from_bytes (and impostor_fill,
for a fog that opens past a layer's cards), terrain_shadow_bytes / terrain_shadow_from_bytes,
sky_ibl_bytes / sky_ibl_from_bytes (sky_precompute split into sky_ibl_make and the convolutions).
A bundle is a word count, a word length per part and the parts (bake_pack / bake_unpack), checked
against the textures' shapes before any byte is used. gpu_vk_readback.ludic reads a texture's level 0,
every layer, as stored; r3d_baked_read reads a bake's file (ludic.base's LBAK header: key and version
must match) since render3d cannot import ludic.base. Nothing calls them yet: behaviour unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 17:19:13 +03:00
parent 7ffa0ecf6d
commit 883ea8d48a
4 changed files with 211 additions and 12 deletions

View file

@ -14,6 +14,7 @@ import "vkmem_report.ludic"
import "gpu_vk_res.ludic"
import "gpu_vk_layers.ludic"
import "gpu_vk_bc.ludic"
import "gpu_vk_readback.ludic"
import "texture_dds.ludic"
import "prof.ludic"
import "drawstats.ludic"
@ -51,4 +52,5 @@ import "grass_gpu.ludic"
import "water.ludic"
import "streamline.ludic"
import "render.ludic"
import "bake_parts.ludic"
import "safe_api.ludic"