IDXGIDevice1 interface (dxgi.h)

An IDXGIDevice1 interface implements a derived class for DXGI objects that produce image data.

Inheritance

The IDXGIDevice1 interface inherits from IDXGIDevice. IDXGIDevice1 also has these types of members:

Methods

The IDXGIDevice1 interface has these methods.

 
IDXGIDevice1::GetMaximumFrameLatency

Gets the number of frames that the system is allowed to queue for rendering.
IDXGIDevice1::SetMaximumFrameLatency

Sets the number of frames that the system is allowed to queue for rendering.

Remarks

This interface is not supported by Direct3D 12 devices. Direct3D 12 applications have direct control over their swapchain management, so better latency control should be handled by the application. You can make use of Waitable objects (refer to DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT) and the IDXGISwapChain2::SetMaximumFrameLatency method if desired.

This interface is not supported by DXGI 1.0, which shipped in Windows Vista and Windows Server 2008. DXGI 1.1 support is required, which is available on Windows 7, Windows Server 2008 R2, and as an update to Windows Vista with Service Pack 2 (SP2) (KB 971644) and Windows Server 2008 (KB 971512).

The IDXGIDevice1 interface is designed for use by DXGI objects that need access to other DXGI objects. This interface is useful to applications that do not use Direct3D to communicate with DXGI.

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

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

Windows Phone 8: This API is supported.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dxgi.h

See also

DXGI Interfaces

IDXGIDevice