diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bvh.md | 4 | ||||
| -rw-r--r-- | docs/d3d12_vulkan.md | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/docs/bvh.md b/docs/bvh.md index 77834afd8..23e046221 100644 --- a/docs/bvh.md +++ b/docs/bvh.md | |||
| @@ -352,6 +352,10 @@ no BLAS and one with a singular transform. An instance record holds its BLAS add | |||
| 352 | so BLAS addresses must be below 2^40, as console GPU addresses are. Where device addresses are wider (llvmpipe's are | 352 | so BLAS addresses must be below 2^40, as console GPU addresses are. Where device addresses are wider (llvmpipe's are |
| 353 | host pointers), the builder takes a bias that is added to the addresses read from instance descs. | 353 | host pointers), the builder takes a bias that is added to the addresses read from instance descs. |
| 354 | 354 | ||
| 355 | The Vulkan layer uses it for `BuildRaytracingAccelerationStructure` unless `LEONIDA_RT_AS=khr` | ||
| 356 | (`docs/d3d12_vulkan.md` §4.8); `d3d12_xdxr_rt_test <dir>` builds a BLAS and a TLAS through the D3D12 API and writes | ||
| 357 | them the same way. | ||
| 358 | |||
| 355 | `vk_xdxr_build_test <dir>` builds nine synthetic cases on the GPU and writes each structure with a description of its | 359 | `vk_xdxr_build_test <dir>` builds nine synthetic cases on the GPU and writes each structure with a description of its |
| 356 | scene. `xdxr_bvh.py check-build <dir>` validates them and traces rays against brute force. `ctest` runs both as | 360 | scene. `xdxr_bvh.py check-build <dir>` validates them and traces rays against brute force. `ctest` runs both as |
| 357 | `xdxr_build` and `xdxr_build_check`. | 361 | `xdxr_build` and `xdxr_build_check`. |
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 77fdf89bb..c12c93ab6 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -1987,8 +1987,13 @@ Vulkan AS would be invisible to them. Two paths: | |||
| 1987 | and make `GetRaytracingAccelerationStructurePrebuildInfo` return sizes for that layout. | 1987 | and make `GetRaytracingAccelerationStructurePrebuildInfo` return sizes for that layout. |
| 1988 | The layout is the XDXR BVH4 runtime form ([bvh.md](bvh.md) §3.1). `tools/xdxr_bvh.py` encodes it on the | 1988 | The layout is the XDXR BVH4 runtime form ([bvh.md](bvh.md) §3.1). `tools/xdxr_bvh.py` encodes it on the |
| 1989 | CPU, with a reference traversal and a validator ([bvh.md](bvh.md) §7a). `runtime/src/xdxr_build.h` builds it on | 1989 | CPU, with a reference traversal and a validator ([bvh.md](bvh.md) §7a). `runtime/src/xdxr_build.h` builds it on |
| 1990 | the GPU and is checked against that reference. It is not yet wired to `BuildRaytracingAccelerationStructure`, which | 1990 | the GPU and is checked against that reference. The standalone device uses it for `BuildRaytracingAccelerationStructure` |
| 1991 | today builds a `VkAccelerationStructureKHR` (#743) that the game's shaders can't read. | 1991 | and answers `GetRaytracingAccelerationStructurePrebuildInfo` from its layout, exactly. Acceleration-structure |
| 1992 | buffers then keep their console VAs, the addresses the records name each other by. `LEONIDA_RT_AS=khr` keeps | ||
| 1993 | #743's `VkAccelerationStructureKHR` builds (for `RayQueryKHR`), which the game's shaders can't read. Updates rebuild | ||
| 1994 | the structure; compaction, copies, serialization and the Xbox batched/streaming builds are not implemented. The | ||
| 1995 | reported `RaytracingTier` is unchanged (`NOT_SUPPORTED`). Checked by `runtime/test/d3d12_xdxr_rt_test.cpp` through | ||
| 1996 | the D3D12 API. | ||
| 1992 | 1997 | ||
| 1993 | **Open:** which path the game uses. Resolve by logging the first call to the standard AS methods and by tracing the | 1998 | **Open:** which path the game uses. Resolve by logging the first call to the standard AS methods and by tracing the |
| 1994 | builder's command-list usage. If XDXR batched/streaming builds are used, their structs and compression formats need | 1999 | builder's command-list usage. If XDXR batched/streaming builds are used, their structs and compression formats need |