mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-06-05 06:14:25 +00:00
[idd] ipc: implement reporting of GPU software status
This commit is contained in:
committed by
Geoffrey McRae
parent
cb70643fa4
commit
803aea0d21
@@ -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[] =
|
||||
|
||||
Reference in New Issue
Block a user