diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 11:43:55 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 11:43:55 -0500 |
| commit | df8de6a1fcd7b443d7717951ae0dcc7d77a9aa70 (patch) | |
| tree | 6acfdd9585558483b651ffadb7981f688cd8a24b /runtime/src | |
| parent | 46594e3aa4bc9d812a1b1e8f8f8cc8a0f687f2c2 (diff) | |
| parent | e4e87a69e0f822a8b91dccef8be13d8402c005d4 (diff) | |
Merge pull request #2296 from João Ramos
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/vulkan_replay.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/src/vulkan_replay.h b/runtime/src/vulkan_replay.h index 8037a43fe..fd69ab91b 100644 --- a/runtime/src/vulkan_replay.h +++ b/runtime/src/vulkan_replay.h | |||
| @@ -3367,9 +3367,10 @@ inline void emit(const PreparedList& prepared, VkCommandBuffer command_buffer, c | |||
| 3367 | vk.xdxr_record(command_buffer, *xdxr_build); | 3367 | vk.xdxr_record(command_buffer, *xdxr_build); |
| 3368 | } else if (const auto* copy = std::get_if<CopyAccelerationStructure>(&command)) { | 3368 | } else if (const auto* copy = std::get_if<CopyAccelerationStructure>(&command)) { |
| 3369 | vk.xdxr_copy(command_buffer, copy->src_va, copy->dst_va, p.xdxr_bytes); | 3369 | vk.xdxr_copy(command_buffer, copy->src_va, copy->dst_va, p.xdxr_bytes); |
| 3370 | } else if (const auto* info = std::get_if<AccelerationStructurePostbuild>(&command); info && !p.skip) { | 3370 | } else if (const auto* postbuild = std::get_if<AccelerationStructurePostbuild>(&command); |
| 3371 | for (std::size_t i = 0; i < info->sources.size(); ++i) | 3371 | postbuild && !p.skip) { |
| 3372 | vk.xdxr_postbuild(command_buffer, info->sources[i], info->dest_va + 8 * i); | 3372 | for (std::size_t s = 0; s < postbuild->sources.size(); ++s) |
| 3373 | vk.xdxr_postbuild(command_buffer, postbuild->sources[s], postbuild->dest_va + 8 * s); | ||
| 3373 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { | 3374 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { |
| 3374 | // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). | 3375 | // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). |
| 3375 | // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. | 3376 | // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. |