mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-17 19:28:17 +00:00
Share D3D12 Loading & Replay code per API: CommandList9 APIs
- Serialise_RSSetDepthBias - Serialise_IASetIndexBufferStripCutValue
This commit is contained in:
1 parent
2113e360a2
commit
5ad608809c
1 file changed
+16
-28
@@ -50,24 +50,18 @@ bool WrappedID3D12GraphicsCommandList::Serialise_RSSetDepthBias(SerialiserType &
|
||||
|
||||
bool stateUpdate = false;
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap9(m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID))
|
||||
->RSSetDepthBias(DepthBias, DepthBiasClamp, SlopeScaledDepthBias);
|
||||
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;
|
||||
}
|
||||
Unwrap9(list)->RSSetDepthBias(DepthBias, DepthBiasClamp, SlopeScaledDepthBias);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
else
|
||||
else if(!m_Cmd->IsPartialCmdList(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap9(pCommandList)->RSSetDepthBias(DepthBias, DepthBiasClamp, SlopeScaledDepthBias);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
|
||||
@@ -122,24 +116,18 @@ bool WrappedID3D12GraphicsCommandList::Serialise_IASetIndexBufferStripCutValue(
|
||||
|
||||
bool stateUpdate = false;
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap9(m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID))
|
||||
->IASetIndexBufferStripCutValue(IBStripCutValue);
|
||||
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;
|
||||
}
|
||||
Unwrap9(list)->IASetIndexBufferStripCutValue(IBStripCutValue);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
else
|
||||
else if(!m_Cmd->IsPartialCmdList(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap9(pCommandList)->IASetIndexBufferStripCutValue(IBStripCutValue);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user