Skip to content

Commit a29dfb8

Browse files
committed
Set sample mask and sample count for patched PSOs in D3D12 overlays
1 parent d28657b commit a29dfb8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

renderdoc/driver/d3d12/d3d12_debug.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7231,6 +7231,8 @@ ResourceId D3D12DebugManager::RenderOverlay(ResourceId texid, FormatComponentTyp
72317231
RDCEraseEl(psoDesc.RTVFormats);
72327232
psoDesc.RTVFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM;
72337233
psoDesc.NumRenderTargets = 1;
7234+
psoDesc.SampleMask = ~0U;
7235+
psoDesc.SampleDesc.Count = RDCMAX(1U, psoDesc.SampleDesc.Count);
72347236
psoDesc.DSVFormat = DXGI_FORMAT_UNKNOWN;
72357237

72367238
psoDesc.RasterizerState.FillMode = D3D12_FILL_MODE_SOLID;
@@ -7304,6 +7306,8 @@ ResourceId D3D12DebugManager::RenderOverlay(ResourceId texid, FormatComponentTyp
73047306
RDCEraseEl(psoDesc.RTVFormats);
73057307
psoDesc.RTVFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM;
73067308
psoDesc.NumRenderTargets = 1;
7309+
psoDesc.SampleMask = ~0U;
7310+
psoDesc.SampleDesc.Count = RDCMAX(1U, psoDesc.SampleDesc.Count);
73077311
psoDesc.DSVFormat = DXGI_FORMAT_UNKNOWN;
73087312

73097313
psoDesc.RasterizerState.FillMode = D3D12_FILL_MODE_SOLID;
@@ -7398,6 +7402,8 @@ ResourceId D3D12DebugManager::RenderOverlay(ResourceId texid, FormatComponentTyp
73987402
RDCEraseEl(psoDesc.RTVFormats);
73997403
psoDesc.RTVFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM;
74007404
psoDesc.NumRenderTargets = 1;
7405+
psoDesc.SampleMask = ~0U;
7406+
psoDesc.SampleDesc.Count = RDCMAX(1U, psoDesc.SampleDesc.Count);
74017407
psoDesc.DSVFormat = DXGI_FORMAT_UNKNOWN;
74027408

74037409
psoDesc.RasterizerState.FillMode = D3D12_FILL_MODE_WIREFRAME;
@@ -7915,6 +7921,8 @@ ResourceId D3D12DebugManager::RenderOverlay(ResourceId texid, FormatComponentTyp
79157921
RDCEraseEl(psoDesc.RTVFormats);
79167922
psoDesc.RTVFormats[0] = DXGI_FORMAT_R16G16B16A16_UNORM;
79177923
psoDesc.NumRenderTargets = 1;
7924+
psoDesc.SampleMask = ~0U;
7925+
psoDesc.SampleDesc.Count = RDCMAX(1U, psoDesc.SampleDesc.Count);
79187926
psoDesc.BlendState.AlphaToCoverageEnable = FALSE;
79197927
psoDesc.BlendState.IndependentBlendEnable = FALSE;
79207928
psoDesc.BlendState.RenderTarget[0].BlendEnable = FALSE;

0 commit comments

Comments
 (0)