mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-18 19:58:42 +00:00
Share D3D12 Loading & Replay code per API: CommandList5 APIs
- Serialise_RSSetShadingRate - Serialise_RSSetShadingRateImage
This commit is contained in:
1 parent
3535447270
commit
ccd637e84f
1 file changed
+16
-28
@@ -69,24 +69,18 @@ bool WrappedID3D12GraphicsCommandList::Serialise_RSSetShadingRate(
|
||||
|
||||
bool stateUpdate = false;
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap5(m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID))
|
||||
->RSSetShadingRate(baseShadingRate, combiners);
|
||||
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;
|
||||
}
|
||||
Unwrap5(list)->RSSetShadingRate(baseShadingRate, combiners);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
else
|
||||
else if(!m_Cmd->IsPartialCmdList(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap5(pCommandList)->RSSetShadingRate(baseShadingRate, combiners);
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
|
||||
@@ -163,24 +157,18 @@ bool WrappedID3D12GraphicsCommandList::Serialise_RSSetShadingRateImage(Serialise
|
||||
|
||||
bool stateUpdate = false;
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
if(m_Cmd->InRerecordRange(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap5(m_Cmd->RerecordCmdList(m_Cmd->m_LastCmdListID))
|
||||
->RSSetShadingRateImage(Unwrap(shadingRateImage));
|
||||
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;
|
||||
}
|
||||
Unwrap5(list)->RSSetShadingRateImage(Unwrap(shadingRateImage));
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
else
|
||||
else if(!m_Cmd->IsPartialCmdList(m_Cmd->m_LastCmdListID))
|
||||
{
|
||||
Unwrap5(pCommandList)->RSSetShadingRateImage(Unwrap(shadingRateImage));
|
||||
|
||||
stateUpdate = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user