mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #743] [CLOSED] xdxr_bvh: handle D3D12 inactive primitives and NaN bounds (OLD-10063) #781
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#781
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/743
Author: @abnalstlll-byte
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:restore/old-10063-xdxr-bvh-inactive📝 Commits (1)
d242fa7xdxr_bvh: handle D3D12 inactive primitives and NaN bounds📊 Changes
2 files changed (+181 additions, -34 deletions)
View changed files
📝
tests/test_xdxr_bvh.py(+101 -0)📝
tools/xdxr_bvh.py(+80 -34)📄 Description
### Summary
Restores and updates work from draft PR #329 (
old-pr/10063/ itemOLD-10063).Original commit by @ShotTechOp (
c90d09b7092).In D3D12 / DirectX Raytracing, inactive primitives are marked by setting a vertex coordinate to NaN (e.g.
v0.x = NaN). Previously,tools/xdxr_bvh.pywould crash or produce corrupt node bounding boxes when encountering NaN coordinates in triangles or inactive TLAS instances.This change:
+inf, -inf) for inactive (NaN) triangles and never pairs them.Verification
python -I scripts/check_no_game_data.py tools/xdxr_bvh.py tests/test_xdxr_bvh.py-> Clean (no game data)python -m unittest tests/test_xdxr_bvh.py-> 53/53 PASS in 1.75subi/main(21625bca8).AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.