IDXGIDevice2::OfferResources Method

Offers resources.

Syntax

public:
HRESULT OfferResources(
         UINT NumResources,
         IDXGIResource * const *ppResources,
         DXGI_OFFER_RESOURCE_PRIORITY Priority
)  

Parameters

NumResources
Type: UINT 

[in] The number of resources.

ppResources
Type: IDXGIResource * const *

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

Priority
Type: DXGI_OFFER_RESOURCE_PRIORITY 

[in] The priority of the resource, as a DXGI_OFFER_RESOURCE_PRIORITY.

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