Skip to content

Commit

Permalink
allow d3d12 rendertarget insert null descriptor, match application be…
Browse files Browse the repository at this point in the history
…havior
  • Loading branch information
Mario-Cui committed Oct 29, 2024
1 parent 21db7b5 commit d33d07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderdoc/driver/d3d12/d3d12_replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit d33d07f

Please sign in to comment.