upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/shims/process.cpp
diff options
context:
space:
mode:
authorromainveurrier <romain.veurrier@gmail.com>2026-11-22 12:45:42 +0100
committerromainveurrier <romain.veurrier@gmail.com>2026-11-22 12:45:42 +0100
commit854d4100f0a8c3fd10b9db1167f4c870b45b28fd (patch)
tree3fc919dc369411f274f0df6ef0364b8f4275de16 /runtime/shims/process.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
tools/xdxr_bvh.py: reference encoder and traversal for the XDXR BVH4 runtime layout
The game's ray-tracing shaders read acceleration-structure nodes themselves (docs/d3d12_vulkan.md 4.8), so a builder on the Vulkan layer must write the console's XDXR BVH4 records. This adds the CPU reference for that builder: - build_blas: triangles to header, parent table, leaves (TRI0, or TRI0/TRI1 pairs with per-triangle barycentric remap) and BOX32 or conservative BOX16 nodes - build_tlas: 128-byte INSTANCE records with world-to-object transforms - intersect_node: one traversal step with the hardware instruction's semantics as the public XDXR software path describes them - trace / brute_force: closest hit, checked against every triangle - validate: header, pointers, nested bounds, parent table; CLI `validate` for a locally dumped buffer, and `selftest` Layouts come from docs/bvh.md 3.1 and the public XDXR traversal source it cites; the region order, build heuristic and pairing are this tool's own choices and are marked ASSUMPTION. docs/bvh.md 7a records each field's source and an Open difference: the translator's image_bvh triangle path ignores the TRI1-TRI3 vertex selection and the remap byte. Standard library only; synthetic fixtures; no game files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions