IDXGIDevice2::ReclaimResources Method

Reclaims resources.

Syntax

public:
HRESULT ReclaimResources(
         UINT NumResources,
         IDXGIResource * const *ppResources,
         BOOL *pDiscarded
)  

Parameters

NumResources
Type: UINT 

[in] The number of resources to reclaim.

ppResources
Type: IDXGIResource * const *

[in] The resource, as a constant pointer to a pointer to IDXGIResource.

pDiscarded
Type: BOOL *

[out, optional] Whether the resource has been discarded.

Return value

Type: HRESULT 

Returns S_OK if successful; otherwise, DXGI_ERROR_DEVICE_REMOVED if the device was removed.

Requirements

Header: Declared in d3d11_x.h (dxgi1_2.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIDevice2

IDXGIDevice2 Members