Merge commit 'd2e1f80' into lang/foundations
This commit is contained in:
commit
6a379ae9aa
3 changed files with 2 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ function sky_ibl_from_bytes(render3d_st: mut Render3dState, data: []byte) -> boo
|
|||
|
||||
# ---- reading a bake's file (ludic.base's format; render3d cannot import ludic.base) ----
|
||||
# "LBAK" | u32 format 1 | u32 version | u32 payload offset | u64 inputs hash | u64 payload length | key
|
||||
const BAKE_MAGIC: int = 1262567756 # "LBAK", little-endian
|
||||
const BAKE_MAGIC: int = 1262568012 # "LBAK" read as a little-endian u32: 0x4B41424C
|
||||
|
||||
# the payload of the bake at `path` when its key and version are these, else null (missing, stale, torn)
|
||||
@alloc_ok("a bake read once at load")
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
# by the cut; either way the whole copy is put back to the quantized values, so the build's own
|
||||
# queries, the physics, the placements' bake and every machine read the same numbers.
|
||||
|
||||
const LT_MAGIC: int = 844383308 # "LTT2"
|
||||
const LT_MAGIC: int = 844387404 # "LTT2" read as a little-endian u32: 0x3254544C
|
||||
const LT_VERSION: int = 1
|
||||
const LT_HEAD: int = 128 # 32 words
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
# start, so no older generator's tiles are ever read; its header goes in last, so a start that died
|
||||
# writing it leaves a file whose magic is not there rather than one that looks whole.
|
||||
|
||||
const TT_MAGIC: int = 1415074892 # "LTTT"
|
||||
const TT_VERSION: int = 1
|
||||
const TT_HEAD: int = 64 # bytes: 16 words
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue