mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
D3D12 Pixel History force scratch targets to be Texture2D
Fixes device timeout for history on 1D or 3D targets
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user