mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user