mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-17 07:21:03 +00:00
Fix D3D12 replay-only buffers being returned by GetBuffers properly
* We do need buffers in the resource list to be able to call GetBufferData
This commit is contained in:
@@ -394,7 +394,8 @@ rdcarray<BufferDescription> D3D12Replay::GetBuffers()
|
||||
rdcarray<BufferDescription> ret;
|
||||
|
||||
for(auto it = m_pDevice->GetResourceList().begin(); it != m_pDevice->GetResourceList().end(); it++)
|
||||
if(it->second->GetDesc().Dimension == D3D12_RESOURCE_DIMENSION_BUFFER)
|
||||
if(it->second->GetDesc().Dimension == D3D12_RESOURCE_DIMENSION_BUFFER &&
|
||||
!ResourceIDGen::IsReplayOnlyID(it->first))
|
||||
ret.push_back(GetBuffer(it->first));
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -1571,7 +1571,7 @@ public:
|
||||
: WrappedDeviceChild12(id, real, device)
|
||||
{
|
||||
m_OrigAddress = origAddress;
|
||||
if(IsReplayMode(device->GetState()) && id != ResourceId())
|
||||
if(IsReplayMode(device->GetState()))
|
||||
device->AddReplayResource(GetResourceID(), this);
|
||||
|
||||
m_Heap = (WrappedID3D12Heap *)heap;
|
||||
|
||||
Reference in New Issue
Block a user