D3D12 Pixel History force scratch targets to be Texture2D

Fixes device timeout for history on 1D or 3D targets
This commit is contained in:
Jake Turner
2024-02-29 06:47:14 +00:00
parent 00777e8474
commit 985531cf0e
@@ -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,