Skip to content

Commit

Permalink
bugfix: end is the last data not out of the data
Browse files Browse the repository at this point in the history
  • Loading branch information
locke-lunarg committed Nov 26, 2024
1 parent 0824faa commit d85cdb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/decode/dx12_dump_resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ bool CaptureGPUAddrMatchDescriptorHeap(const D3D12_GPU_DESCRIPTOR_HANDLE capture
auto capture_gpu_addr_end = heap_info.capture_gpu_addr_begin + heap_info.descriptor_count * increment;

bool is_match = true ? (heap_info.capture_gpu_addr_begin <= capture_gpu_addr.ptr &&
capture_gpu_addr.ptr < capture_gpu_addr_end)
capture_gpu_addr.ptr <= capture_gpu_addr_end)
: false;
if (is_match)
{
Expand All @@ -1062,7 +1062,7 @@ bool ReplayCPUAddrMatchDescriptorHeap(const D3D12_CPU_DESCRIPTOR_HANDLE replay_c
auto replay_cpu_addr_end = heap_info.replay_cpu_addr_begin + heap_info.descriptor_count * increment;

bool is_match = true ? (heap_info.replay_cpu_addr_begin <= replay_cpu_addr.ptr &&
replay_cpu_addr.ptr < replay_cpu_addr_end)
replay_cpu_addr.ptr <= replay_cpu_addr_end)
: false;
if (is_match)
{
Expand Down

0 comments on commit d85cdb0

Please sign in to comment.