mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-17 19:28:17 +00:00
Share D3D12 Loading & Replay code per API: CommandList8 APIs
- Serialise_OMSetFrontAndBackStencilRef
This commit is contained in:
1 parent
9f49122d04
commit
2113e360a2
1 file changed
+8
-14
@@ -49,24 +49,18 @@ bool WrappedID3D12GraphicsCommandList::Serialise_OMSetFrontAndBackStencilRef(Ser
|
||||
|
||||
bool stateUpdate = false;
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap8(m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID))
|
||||
->OMSetFrontAndBackStencilRef(FrontStencilRef, BackStencilRef);
|
||||
bool loading = IsLoading(m_State);
|
||||
ID3D12GraphicsCommandListX *list = !loading ? m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID)
|
||||
: (ID3D12GraphicsCommandListX *)pCommandList;
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
else if(!m_Cmd->IsPartialCmdList(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
stateUpdate = true;
|
||||
}
|
||||
Unwrap8(list)->OMSetFrontAndBackStencilRef(FrontStencilRef, BackStencilRef);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
else
|
||||
else if(!m_Cmd->IsPartialCmdList(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap8(pCommandList)->OMSetFrontAndBackStencilRef(FrontStencilRef, BackStencilRef);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user