IDXGIDevice1 interface

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

Members

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

Methods

The IDXGIDevice1 interface has these methods.

MethodDescription
GetMaximumFrameLatency

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

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

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

DXGI.h

Library

DXGI.lib

See also

IDXGIDevice
DXGI Interfaces

 

 

Show: