IDXGIDeviceSubObject::GetDevice method (dxgi.h)
Retrieves the device.
Syntax
HRESULT GetDevice(
[in] REFIID riid,
[out] void **ppDevice
);
Parameters
[in] riid
Type: REFIID
The reference id for the device.
[out] ppDevice
Type: void**
The address of a pointer to the device.
Return value
Type: HRESULT
A code that indicates success or failure (see DXGI_ERROR).
Remarks
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).
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dxgi.h |
Library | DXGI.lib |