From 985531cf0e796802d5f533e613c04697793f92b8 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Thu, 15 Feb 2024 13:35:39 +0000 Subject: [PATCH] D3D12 Pixel History force scratch targets to be Texture2D Fixes device timeout for history on 1D or 3D targets --- renderdoc/driver/d3d12/d3d12_pixelhistory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp index d9eb43c31..1bc0c6a48 100644 --- a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp +++ b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp @@ -2549,6 +2549,7 @@ bool D3D12DebugManager::PixelHistorySetupResources(D3D12PixelHistoryResources &r imageDesc.Format = DXGI_FORMAT_R32G32B32A32_FLOAT; imageDesc.Layout = D3D12_TEXTURE_LAYOUT_UNKNOWN; imageDesc.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET; + imageDesc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D; hr = m_pDevice->CreateCommittedResource(&heapProps, D3D12_HEAP_FLAG_NONE, &imageDesc, D3D12_RESOURCE_STATE_RENDER_TARGET, NULL,