IDXGIDevice Interface

An IDXGIDevice interface implements a derived class for Microsoft DirectX Graphics Infrastructure (DXGI) objects that produce image data.

Syntax

interface IDXGIDevice : public IDXGIObject  

Remarks

The IDXGIDevice interface is designed for use by Microsoft DirectX Graphics Infrastructure (DXGI) objects that need access to other Microsoft DirectX Graphics Infrastructure (DXGI) objects. This interface is useful to applications that do not use Microsoft Direct3D to communicate with Microsoft DirectX Graphics Infrastructure (DXGI).

The Microsoft Direct3D create device functions return a Microsoft Direct3D device object. This Microsoft Direct3D device object implements the IUnknown interface. You can query this Microsoft Direct3D device object for the device’s corresponding IDXGIDevice interface. To retrieve the IDXGIDevice interface of a Microsoft Direct3D device, use the following code:

IDXGIDevice * pDXGIDevice;
hr = g_pd3dDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&pDXGIDevice);  

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIDevice Members