diff options
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 2a37f58f5..c853f6a55 100644 --- a/runtime/src/vulkan_replay.h +++ b/runtime/src/vulkan_replay.h | |||
| @@ -3171,9 +3171,10 @@ inline void emit(const PreparedList& prepared, VkCommandBuffer command_buffer, c | |||
| 3171 | vk.xdxr_record(command_buffer, *xdxr_build); | 3171 | vk.xdxr_record(command_buffer, *xdxr_build); |
| 3172 | } else if (const auto* copy = std::get_if<CopyAccelerationStructure>(&command)) { | 3172 | } else if (const auto* copy = std::get_if<CopyAccelerationStructure>(&command)) { |
| 3173 | vk.xdxr_copy(command_buffer, copy->src_va, copy->dst_va, p.xdxr_bytes); | 3173 | vk.xdxr_copy(command_buffer, copy->src_va, copy->dst_va, p.xdxr_bytes); |
| 3174 | } else if (const auto* info = std::get_if<AccelerationStructurePostbuild>(&command); info && !p.skip) { | 3174 | } else if (const auto* postbuild = std::get_if<AccelerationStructurePostbuild>(&command); |
| 3175 | for (std::size_t i = 0; i < info->sources.size(); ++i) | 3175 | postbuild && !p.skip) { |
| 3176 | vk.xdxr_postbuild(command_buffer, info->sources[i], info->dest_va + 8 * i); | 3176 | for (std::size_t s = 0; s < postbuild->sources.size(); ++s) |
| 3177 | vk.xdxr_postbuild(command_buffer, postbuild->sources[s], postbuild->dest_va + 8 * s); | ||
| 3177 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { | 3178 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { |
| 3178 | // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). | 3179 | // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). |
| 3179 | // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. | 3180 | // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. |