Shaders: ignore missing BVH children before sorting #217

Closed
github-bot wants to merge 1 commit from gh-pr/217/head into gh-pr/217/base
Owner

@⁠Flyander on GitHub · 2026-11-24 22:39 UTC · original
Flyander:fix/bvh-ignore-missing-children → main · +54 −1 · 3 files · 1 commits · closed without merging

Summary

  • Ignore BVH slots whose child ID is NONE when computing and sorting box hits.
  • Add a regression case where an absent slot has an intersecting box ahead of a valid child. Confirm the real child stays first in both the CPU reference and emitted shader.

Validation

  • cargo test --locked -p victory-shader --lib --target-dir E:\Dev\victory-fork-target: 211 passed, 2 ignored. The regression test ran on the RTX 5070 Ti and WARP.
  • rustfmt --edition 2024 --check on the three changed files and git diff --check pass.
  • The workspace-wide cargo fmt --all -- --check still reports existing formatting differences in unrelated files.
**@⁠Flyander** on GitHub · 2026-11-24 22:39 UTC · [original](https://github.com/fxceless/victory-fork/pull/217) `Flyander:fix/bvh-ignore-missing-children` → `main` · +54 −1 · 3 files · 1 commits · closed without merging ## Summary - Ignore BVH slots whose child ID is `NONE` when computing and sorting box hits. - Add a regression case where an absent slot has an intersecting box ahead of a valid child. Confirm the real child stays first in both the CPU reference and emitted shader. ## Validation - `cargo test --locked -p victory-shader --lib --target-dir E:\Dev\victory-fork-target`: 211 passed, 2 ignored. The regression test ran on the RTX 5070 Ti and WARP. - `rustfmt --edition 2024 --check` on the three changed files and `git diff --check` pass. - The workspace-wide `cargo fmt --all -- --check` still reports existing formatting differences in unrelated files.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:37 +00:00
github-bot closed this pull request 2026-11-26 03:38:37 +00:00
Author
Owner

@⁠Flyander on GitHub · 2026-11-24 22:46 UTC · original

Closing this as a duplicate of #213, which addresses the same missing-child sort-key bug from #173 and has broader parity coverage for both node widths plus the ray-tracing docs. #213 is the better single upstream implementation.

**@⁠Flyander** on GitHub · 2026-11-24 22:46 UTC · [original](https://github.com/fxceless/victory-fork/pull/217#issuecomment-7146636130) Closing this as a duplicate of #213, which addresses the same missing-child sort-key bug from #173 and has broader parity coverage for both node widths plus the ray-tracing docs. #213 is the better single upstream implementation.

Pull request closed

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