From 66319d72bb12af6db5bef3cf74c8f7d4b2d702fb Mon Sep 17 00:00:00 2001 From: Jeremy Lukacs Date: Thu, 27 Sep 2018 17:51:18 -0700 Subject: [PATCH] Fix D3D12 debug overlay pipeline creation --- renderdoc/driver/d3d12/d3d12_overlay.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renderdoc/driver/d3d12/d3d12_overlay.cpp b/renderdoc/driver/d3d12/d3d12_overlay.cpp index 2b00e32d8..a8ff6969c 100644 --- a/renderdoc/driver/d3d12/d3d12_overlay.cpp +++ b/renderdoc/driver/d3d12/d3d12_overlay.cpp @@ -480,6 +480,7 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, CompType typeHint, Debug psoDesc.BlendState.RenderTarget[0].BlendEnable = FALSE; psoDesc.BlendState.RenderTarget[0].RenderTargetWriteMask = 0xf; psoDesc.BlendState.RenderTarget[0].LogicOpEnable = FALSE; + RDCEraseEl(psoDesc.RTVFormats.RTFormats); psoDesc.RTVFormats.RTFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM; psoDesc.RTVFormats.NumRenderTargets = 1; psoDesc.SampleMask = ~0U; @@ -554,6 +555,7 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, CompType typeHint, Debug psoDesc.BlendState.RenderTarget[0].BlendEnable = FALSE; psoDesc.BlendState.RenderTarget[0].RenderTargetWriteMask = 0xf; psoDesc.BlendState.RenderTarget[0].LogicOpEnable = FALSE; + RDCEraseEl(psoDesc.RTVFormats.RTFormats); psoDesc.RTVFormats.RTFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM; psoDesc.RTVFormats.NumRenderTargets = 1; psoDesc.SampleMask = ~0U; @@ -648,6 +650,7 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, CompType typeHint, Debug psoDesc.BlendState.RenderTarget[0].BlendEnable = FALSE; psoDesc.BlendState.RenderTarget[0].RenderTargetWriteMask = 0xf; psoDesc.BlendState.RenderTarget[0].LogicOpEnable = FALSE; + RDCEraseEl(psoDesc.RTVFormats.RTFormats); psoDesc.RTVFormats.RTFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM; psoDesc.RTVFormats.NumRenderTargets = 1; psoDesc.SampleMask = ~0U; @@ -833,6 +836,7 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, CompType typeHint, Debug pipeDesc.SampleDesc.Count = 1; pipeDesc.IBStripCutValue = D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED; + RDCEraseEl(pipeDesc.RTVFormats.RTFormats); pipeDesc.RTVFormats.NumRenderTargets = 1; pipeDesc.RTVFormats.RTFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM; pipeDesc.BlendState.RenderTarget[0].BlendEnable = FALSE; @@ -1160,6 +1164,7 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, CompType typeHint, Debug psoDesc.DepthStencilState.DepthBoundsTestEnable = FALSE; } + RDCEraseEl(psoDesc.RTVFormats.RTFormats); psoDesc.RTVFormats.RTFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM; psoDesc.RTVFormats.NumRenderTargets = 1; psoDesc.SampleMask = ~0U;