mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 18:31:40 +00:00
Add a new analytics tracking flag for "has any capture used DXIL"
This commit is contained in:
@@ -727,6 +727,8 @@ void CaptureContext::LoadCapture(const rdcstr &captureFile, const ReplayOptions
|
||||
ANALYTIC_SET(CaptureFeatures.MultiGPU, true);
|
||||
if(m_APIProps.D3D12Bundle)
|
||||
ANALYTIC_SET(CaptureFeatures.D3D12Bundle, true);
|
||||
if(m_APIProps.DXILShaders)
|
||||
ANALYTIC_SET(CaptureFeatures.DXILShaders, true);
|
||||
|
||||
if(m_APIProps.vendor != GPUVendor::Unknown)
|
||||
{
|
||||
|
||||
@@ -313,6 +313,7 @@ static struct AnalyticsDocumentation
|
||||
DOCUMENT_ANALYTIC(SparseResources, "Did any capture use sparse aka tiled resources?");
|
||||
DOCUMENT_ANALYTIC(MultiGPU, "Did any capture make use of multiple GPUs?");
|
||||
DOCUMENT_ANALYTIC(D3D12Bundle, "Did any D3D12 capture use bundles?");
|
||||
DOCUMENT_ANALYTIC(DXILShaders, "Did any D3D12 capture use DXIL shaders?");
|
||||
} DOCUMENT_ANALYTIC_SECTION(CaptureFeatures, "Capture API Usage");
|
||||
} docs;
|
||||
|
||||
@@ -322,7 +323,7 @@ void AnalyticsSerialise(Analytics &serdb, QVariantMap &values, AnalyticsSerialis
|
||||
|
||||
// only check this on 64-bit as it is different on 32-bit
|
||||
#if QT_POINTER_SIZE == 8 && defined(Q_OS_WIN32)
|
||||
static_assert(sizeof(Analytics) == 147, "Sizeof Analytics has changed - update serialisation.");
|
||||
static_assert(sizeof(Analytics) == 148, "Sizeof Analytics has changed - update serialisation.");
|
||||
#endif
|
||||
|
||||
QString doc;
|
||||
@@ -430,6 +431,7 @@ void AnalyticsSerialise(Analytics &serdb, QVariantMap &values, AnalyticsSerialis
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.SparseResources);
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.MultiGPU);
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.D3D12Bundle);
|
||||
ANALYTIC_SERIALISE(CaptureFeatures.DXILShaders);
|
||||
}
|
||||
|
||||
if(type == AnalyticsSerialiseType::Documenting)
|
||||
|
||||
@@ -241,6 +241,7 @@ struct Analytics
|
||||
bool SparseResources = false;
|
||||
bool MultiGPU = false;
|
||||
bool D3D12Bundle = false;
|
||||
bool DXILShaders = false;
|
||||
} CaptureFeatures;
|
||||
};
|
||||
|
||||
|
||||
@@ -1533,6 +1533,7 @@ worked around by re-sorting bindings.
|
||||
bool SparseResources = false;
|
||||
bool MultiGPU = false;
|
||||
bool D3D12Bundle = false;
|
||||
bool DXILShaders = false;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -3245,7 +3245,7 @@ ReplayStatus WrappedID3D12Device::ReadLogInitialisation(RDCFile *rdc, bool store
|
||||
|
||||
ReadSerialiser ser(reader, Ownership::Stream);
|
||||
|
||||
m_UsedDXIL = m_InitParams.usedDXIL;
|
||||
APIProps.DXILShaders = m_UsedDXIL = m_InitParams.usedDXIL;
|
||||
|
||||
ser.SetStringDatabase(&m_StringDB);
|
||||
ser.SetUserData(GetResourceManager());
|
||||
|
||||
@@ -504,6 +504,7 @@ void DoSerialise(SerialiserType &ser, APIProperties &el)
|
||||
SERIALISE_MEMBER(SparseResources);
|
||||
SERIALISE_MEMBER(MultiGPU);
|
||||
SERIALISE_MEMBER(D3D12Bundle);
|
||||
SERIALISE_MEMBER(DXILShaders);
|
||||
|
||||
SIZE_CHECK(24);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user