IDXGIDevice4 interface (dxgi1_5.h)
This interface provides updated methods to offer and reclaim resources.
The IDXGIDevice4 interface inherits from IDXGIDevice3. IDXGIDevice4 also has these types of members:
The IDXGIDevice4 interface has these methods.
Allows the operating system to free the video memory of resources, including both discarding the content and de-committing the memory.
Restores access to resources that were previously offered by calling IDXGIDevice4::OfferResources1.
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);