Issues/34 header check in instances descs #74

Closed
github-bot wants to merge 3 commits from gh-pr/74/head into gh-pr/74/base
Owner

@⁠almostxxx27 on GitHub · 2026-11-30 19:53 UTC · original
almostxxx27:issues/34_HeaderCheckInInstancesDescs → main · +152 −0 · 1 files · 3 commits · closed without merging

No description provided.

**@⁠almostxxx27** on GitHub · 2026-11-30 19:53 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/pull/74) `almostxxx27:issues/34_HeaderCheckInInstancesDescs` → `main` · +152 −0 · 1 files · 3 commits · closed without merging *No description provided.*
InstanceDescs read the root and bounds of every readable BLAS header,
so a zeroed header (version 0, root 0) entered the TLAS as an instance
with root node pointer 0 and empty bounds. InstanceDescs.IsBuilt now
requires dword 0 low 16 bits = 6, bit 24 (serialized) clear and a box
root (type 4 or 5) in dword 12; an instance that fails keeps
InvalidNode, so XdxrTlas leaves it out like a null or unreadable BLAS.

AmdBvhLayout gains Box16Type and NodeTypeMask. InstanceDescsTests cover
a built BLAS, a zeroed header, a still-serialized header, a triangle
root and a box16 root. docs/raytracing.md TLAS row updated.

Refs #34

Co-authored-by: Copilot <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 19:56:23 +00:00
github-bot closed this pull request 2026-11-30 19:56:23 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.