38 for (
UINT i = 0; ; ++i)
40 IDXGIOutput* output =
nullptr;
41 hr =
mAdapter->EnumOutputs(i, &output);
42 if (hr != DXGI_ERROR_NOT_FOUND)
63 mAdapter =
object.mAdapter;
88 IDXGIFactory1* factory =
nullptr;
89 HRESULT hr = CreateDXGIFactory1(__uuidof(IDXGIFactory1),
95 for (
UINT i = 0; ; ++i)
97 IDXGIAdapter1* adapter =
nullptr;
98 hr = factory->EnumAdapters1(i, &adapter);
99 if (hr != DXGI_ERROR_NOT_FOUND)
#define CHECK_HR_RETURN_NONE(msg)
DXGI_ADAPTER_DESC1 const & GetDescription() const
IDXGIAdapter1 * GetAdapter() const
static void Enumerate(std::vector< DXGIAdapter > &adapters)
DXGIAdapter(DXGIAdapter const &object)
std::vector< DXGIOutput > const & GetOutputs() const
std::vector< DXGIOutput > mOutputs
ULONG SafeRelease(T *&object)
DXGIAdapter & operator=(DXGIAdapter const &object)
typedef UINT(WINAPI *PFNWGLGETGPUIDSAMDPROC)(UINT maxCount
DXGI_ADAPTER_DESC1 mDescription