mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Add analytics boolean that tracks if bundles are used in D3D12
This commit is contained in:
@@ -150,6 +150,7 @@ void CaptureContext::LoadCapture(const QString &captureFile, const QString &orig
|
||||
ANALYTIC_SET(CaptureFeatures.YUVTextures, m_APIProps.YUVTextures);
|
||||
ANALYTIC_SET(CaptureFeatures.SparseResources, m_APIProps.SparseResources);
|
||||
ANALYTIC_SET(CaptureFeatures.MultiGPU, m_APIProps.MultiGPU);
|
||||
ANALYTIC_SET(CaptureFeatures.D3D12Bundle, m_APIProps.D3D12Bundle);
|
||||
|
||||
m_MainWindow->setProgress(-1.0f);
|
||||
|
||||
|
||||
@@ -259,6 +259,7 @@ void AnalyticsSerialise(QVariantMap &values, AnalyticsSerialiseType type)
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.YUVTextures);
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.SparseResources);
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.MultiGPU);
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.D3D12Bundle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -230,6 +230,7 @@ struct Analytics
|
||||
bool YUVTextures = false;
|
||||
bool SparseResources = false;
|
||||
bool MultiGPU = false;
|
||||
bool D3D12Bundle = false;
|
||||
} CaptureFeatures;
|
||||
};
|
||||
|
||||
|
||||
@@ -954,6 +954,7 @@ worked around by re-sorting bindings.
|
||||
bool YUVTextures = false;
|
||||
bool SparseResources = false;
|
||||
bool MultiGPU = false;
|
||||
bool D3D12Bundle = false;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -3258,6 +3258,8 @@ bool WrappedID3D12GraphicsCommandList::Serialise_ExecuteBundle(SerialiserType &s
|
||||
|
||||
if(IsReplayingAndReading())
|
||||
{
|
||||
m_pDevice->APIProps.D3D12Bundle = true;
|
||||
|
||||
m_Cmd->m_LastCmdListID = GetResourceManager()->GetOriginalID(GetResID(pCommandList));
|
||||
|
||||
if(IsActiveReplaying(m_State))
|
||||
|
||||
@@ -403,6 +403,7 @@ void DoSerialise(SerialiserType &ser, APIProperties &el)
|
||||
SERIALISE_MEMBER(YUVTextures);
|
||||
SERIALISE_MEMBER(SparseResources);
|
||||
SERIALISE_MEMBER(MultiGPU);
|
||||
SERIALISE_MEMBER(D3D12Bundle);
|
||||
|
||||
SIZE_CHECK(16);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user