upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorDavide <davidec98@live.it>2026-11-22 17:17:01 +0100
committerDavide <davidec98@live.it>2026-11-22 17:17:01 +0100
commitdb4be7ae6c4ccdc8723c1c0e1c469cfd8329c562 (patch)
tree179d3f5541b8d883a947ad4df12b6458ee533c53 /runtime/test/gameinput_test.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
tools/bvh_rehydrate.py: a CPU reference that rehydrates a dehydrated BLAS
Written from the packing in docs/bvh.md §4a, standard library only. Inputs are float3 vertices with uint16, uint32 or no indices, and an optional 3x4 geometry transform. It does the header copy, the leaf chunks (vertex-order slots, the paired fourth vertex), the box groups by level with their stored overrides, BOX16 outward rounding with the +-inf overflow, the parent entries and the compressionParams leaf frame. Float arithmetic is rounded to float32 per operation. On the 8 measured samples whose geometry is identified, the output is byte-identical to XboxBvhBuilder.dll's RehydrateRaytracingAccelerationStructureX (checked locally; no sample is in the repository). The 15 tests in tests/test_bvh_rehydrate.py are synthetic. docs/bvh.md §7 documents it, including the console's size convention, 64 * (totalSizeIn64BNodes + 1) bytes, which xdxr_bvh.py validate reads as one unit less.
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions