PFND3DDDI_TRIMRESIDENCYSET callback function (d3dumddi.h)

pfnTrimResidencySet is used to trim the residency list for a given device. User mode drivers are required to implement this callback in order to participate in the new memory residency model.

Syntax

PFND3DDDI_TRIMRESIDENCYSET Pfnd3dddiTrimresidencyset;

HRESULT Pfnd3dddiTrimresidencyset(
  HANDLE hDevice,
  D3DDDIARG_TRIMRESIDENCYSET *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device.

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_TRIMRESIDENCYSET structure that provides the details of the requested operation.

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h, D3dkmddi.h)

See also

D3DDDIARG_TRIMRESIDENCYSET