public:
HRESULT GetDevice(
REFIID riid,
void **ppDevice
)
riid
Type: REFIID
[in] The reference id for the device.
ppDevice
Type: void **
[out] The address of a pointer to the device.
Type: HRESULT
A code that indicates success or failure (see DXGI_ERROR).
The type of interface that is returned can be any interface published by the device. For example, it could be an IDXGIDevice * called pDevice, and therefore the REFIID would be obtained by calling __uuidof(pDevice).
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).