Skip to content

Commit

Permalink
allow d3d12 insert null rt descriptor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-Cui authored and baldurk committed Oct 31, 2024
1 parent 2dfd7e5 commit 6f95cf2
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 6f95cf2

Please sign in to comment.