From 3ad26f932165dc96910ee5382f77fa23854bbe72 Mon Sep 17 00:00:00 2001 From: Mario-Cui <53861236+Mario-Cui@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:23:20 +0800 Subject: [PATCH] allow d3d12 insert null rt descriptor. --- renderdoc/driver/d3d12/d3d12_replay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d12/d3d12_replay.cpp b/renderdoc/driver/d3d12/d3d12_replay.cpp index a2b1823847..89c4fbe163 100644 --- a/renderdoc/driver/d3d12/d3d12_replay.cpp +++ b/renderdoc/driver/d3d12/d3d12_replay.cpp @@ -1585,9 +1585,9 @@ void D3D12Replay::SavePipelineState(uint32_t eventId) { const D3D12Descriptor &desc = rs.rts[i]; + state.outputMerger.renderTargets.push_back(Descriptor()); if(desc.GetResResourceId() != ResourceId()) { - state.outputMerger.renderTargets.push_back(Descriptor()); FillDescriptor(state.outputMerger.renderTargets.back(), &desc); } }