D3D12 Pixel History handle resolve events.

* Add action callbacks for ResolveSubresource so pixel history can
record pre- and post-mods for the events.
This commit is contained in:
Jovan Ristic authored and Jake Turner committed 2024-02-13 08:47:11 +00:00
1 parent dbfd1287cf
commit 8108516b56
1 file changed
+7
@@ -5098,8 +5098,15 @@ bool WrappedID3D12GraphicsCommandList::Serialise_ResolveSubresource(
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
{
ID3D12GraphicsCommandListX *list = m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID);
uint32_t eventId = m_Cmd->HandlePreCallback(list, ActionFlags::Resolve);
Unwrap(list)->ResolveSubresource(Unwrap(pDstResource), DstSubresource, Unwrap(pSrcResource),
SrcSubresource, Format);
if(eventId && m_Cmd->m_ActionCallback->PostMisc(eventId, ActionFlags::Resolve, list))
{
Unwrap(list)->ResolveSubresource(Unwrap(pDstResource), DstSubresource,
Unwrap(pSrcResource), SrcSubresource, Format);
m_Cmd->m_ActionCallback->PostRemisc(eventId, ActionFlags::Resolve, list);
}
}
}
else