PFND3DDDI_RECLAIMRESOURCES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dumddi.h

PFND3DDDI_RECLAIMRESOURCES Pfnd3dddiReclaimresources;

HRESULT Pfnd3dddiReclaimresources(
  HANDLE hDevice,
  const D3DDDIARG_RECLAIMRESOURCES *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dumddi-pfnd3dddi_reclaimresources)

PFND3DDDI_RECLAIMRESOURCES callback function

Description

Called by the Microsoft Direct3D runtime to reclaim video memory resources that it previously offered for reuse.

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_RECLAIMRESOURCES structure that defines the video memory resources to reclaim.

Return value

Returns one of the following values:

Return code Description
S_OK The video memory resources were successfully reclaimed.
This error code is returned if the driver does not need to call the pfnReclaimAllocationsCb function.
E_INVALIDARG An invalid parameter was supplied.
This error code is returned if the driver calls the pfnReclaimAllocationsCb function and that function returns E_INVALIDARG.
D3DDDIERR_DEVICEREMOVED The video memory manager or display miniport driver could not complete the operation because either a Plug and Play (PnP) Stop event or a Timeout Detection and Recovery (TDR) event occurred.
This error code is returned if the driver calls the pfnReclaimAllocationsCb function and that function returns D3DDDIERR_DEVICEREMOVED.
Note: If this error code is returned, the driver's calling function (typically the ReclaimResourcesDXGI routine) must return this error code to the Direct3D runtime.

See also

D3DDDIARG_RECLAIMRESOURCES

D3DDDI_DEVICEFUNCS

OfferResources

ReclaimResourcesDXGI

pfnReclaimAllocationsCb