diff options
| author | romainveurrier <romain.veurrier@gmail.com> | 2026-11-22 14:32:31 +0100 |
|---|---|---|
| committer | romainveurrier <romain.veurrier@gmail.com> | 2026-11-22 14:41:25 +0100 |
| commit | 6e8a1400ee22cbbf6346501117d46fc730254ffa (patch) | |
| tree | 25e8ceeea08e51d8462939b0673fa6c3a72e7ae6 /runtime/src | |
| parent | 89b047cd8fab50675a43d76722a6a8a881f55dc2 (diff) | |
vulkan_replay: name the XDXR build branch's binding apart from the KHR one
Two `const auto* build` in one else-if chain: the second hides the first
and MSVC /W4 warns (C4456) in every file that includes the header
(reported by @zneel on #1667).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/vulkan_replay.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/src/vulkan_replay.h b/runtime/src/vulkan_replay.h index 89fe7381d..072f5eef8 100644 --- a/runtime/src/vulkan_replay.h +++ b/runtime/src/vulkan_replay.h | |||
| @@ -2955,8 +2955,9 @@ inline void emit(const PreparedList& prepared, VkCommandBuffer command_buffer, c | |||
| 2955 | } | 2955 | } |
| 2956 | } | 2956 | } |
| 2957 | } | 2957 | } |
| 2958 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command); build && vk.xdxr_record) { | 2958 | } else if (const auto* xdxr_build = std::get_if<BuildAccelerationStructure>(&command); |
| 2959 | vk.xdxr_record(command_buffer, *build); | 2959 | xdxr_build && vk.xdxr_record) { |
| 2960 | vk.xdxr_record(command_buffer, *xdxr_build); | ||
| 2960 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { | 2961 | } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { |
| 2961 | // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). | 2962 | // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). |
| 2962 | // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. | 2963 | // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. |