mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-19 20:26:56 +00:00
Share D3D12 Loading & Replay code per API: CommandList2 APIs
- Serialise_WriteBufferImmediate
This commit is contained in:
1 parent
f2fe793844
commit
7703f5e3b7
1 file changed
+6
-10
@@ -48,17 +48,13 @@ bool WrappedID3D12GraphicsCommandList::Serialise_WriteBufferImmediate(
|
||||
|
||||
m_Cmd->m_LastCmdListID = GetResID(pCommandList);
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap2(m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID))
|
||||
->WriteBufferImmediate(Count, pParams, pModes);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Unwrap2(pCommandList)->WriteBufferImmediate(Count, pParams, pModes);
|
||||
bool loading = IsLoading(m_State);
|
||||
ID3D12GraphicsCommandListX *list = !loading ? m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID)
|
||||
: (ID3D12GraphicsCommandListX *)pCommandList;
|
||||
|
||||
Unwrap2(list)->WriteBufferImmediate(Count, pParams, pModes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user