IDXGIDevice4 interface

This interface provides updated methods to offer and reclaim resources.

Members

The IDXGIDevice4 interface inherits from IDXGIDevice3. IDXGIDevice4 also has these types of members:

Methods

The IDXGIDevice4 interface has these methods.

MethodDescription
OfferResources1

Allows the operating system to free the video memory of resources, including both discarding the content and de-committing the memory.

ReclaimResources1

Restores access to resources that were previously offered by calling IDXGIDevice4::OfferResources1.

 

Remarks

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 IDXGIDevice4 interface. To retrieve the IDXGIDevice4 interface of a Direct3D device, use the following code:


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

Requirements

Header

Dxgi1_5.h

Library

Dxgi.lib

DLL

Dxgi.dll

See also

IDXGIDevice3
DXGI Interfaces
IDXGIDevice2

 

 

Show: