IDXGIDevice4 interface (dxgi1_5.h)
This interface provides updated methods to offer and reclaim resources.
Inheritance
The IDXGIDevice4 interface inherits from IDXGIDevice3. IDXGIDevice4 also has these types of members:
Methods
The IDXGIDevice4 interface has these methods.
IDXGIDevice4::OfferResources1 Allows the operating system to free the video memory of resources, including both discarding the content and de-committing the memory. |
IDXGIDevice4::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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dxgi1_5.h |