[idd] ipc: implement reporting of GPU software status

This commit is contained in:
Geoffrey McRae authored and Geoffrey McRae committed 2026-06-03 21:31:08 +10:00
1 parent cb70643fa4
commit 803aea0d21
8 files changed
+43 -1

No files matched your search

+7
View File
@@ -30,6 +30,13 @@ HRESULT CD3D11Device::Init()
hr = m_factory->EnumAdapterByLuid(m_adapterLuid, IID_PPV_ARGS(&m_adapter));
if (FAILED(hr))
return hr;
DXGI_ADAPTER_DESC1 desc = {};
hr = m_adapter->GetDesc1(&desc);
if (FAILED(hr))
return hr;
m_isSoftware = (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) != 0;
// only 11.1 supports DX12 interoperabillity
static const D3D_FEATURE_LEVEL featureLevels[] =