feat(shader): configurable ray tracing miss fallback #101

Merged
asimplestray merged 1 commit from upstream-pr/101 into main 2026-09-30 17:40:34 +00:00
asimplestray commented 2026-09-28 20:32:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by asimplestray on 2026-09-28T20:32:52Z.


What

Strict-validation toggle for IMAGE_BVH_INTERSECT_RAY (0xE6), on top of the real ray tracing path now in main:

  • Default: the real intersect path (validate + emit ImageBvhIntersectRay).
  • APS5_RAYTRACING=strict: throws instead, preserving strict validation while real RT matures on all GPUs.
  • RayTracingStrict() is part of the recompile cache key, following the DebugProbeActive pattern.

Tested

Linux (GCC, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF): full build, ctest 71/71 pass, including the ray_tracing_miss test in both default and APS5_RAYTRACING=strict modes. No title run.

Checklist

  • Based on current main; rebased onto the real ray tracing implementation
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (APS5_RAYTRACING=strict preserves the throw)
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4668966830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/101). Originally posted by [asimplestray](https://github.com/asimplestray) on 2026-09-28T20:32:52Z. --- ### What Strict-validation toggle for `IMAGE_BVH_INTERSECT_RAY` (`0xE6`), on top of the real ray tracing path now in `main`: - Default: the real intersect path (validate + emit `ImageBvhIntersectRay`). - `APS5_RAYTRACING=strict`: throws instead, preserving strict validation while real RT matures on all GPUs. - `RayTracingStrict()` is part of the recompile cache key, following the `DebugProbeActive` pattern. ### Tested Linux (GCC, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`): full build, `ctest` 71/71 pass, including the `ray_tracing_miss` test in both default and `APS5_RAYTRACING=strict` modes. No title run. ### Checklist - [x] Based on current `main`; rebased onto the real ray tracing implementation - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`APS5_RAYTRACING=strict` preserves the throw) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!101
No description provided.