Bewerken

Delen via


PFND3DDDI_EVICTCB callback function (d3dumddi.h)

pfnEvictCb is used to instruct the OS to decrement the residency reference count. Once this count reaches zero, it will remove the allocation from the device residency list.

Syntax

PFND3DDDI_EVICTCB Pfnd3dddiEvictcb;

HRESULT Pfnd3dddiEvictcb(
  HANDLE hDevice,
  D3DDDICB_EVICT *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device.

unnamedParam2

pData [in, out]

A pointer to a D3DDDICB_EVICT structure that describes the memory pages to evict.

Return value

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

Remarks

Once the eviction request is queued, it is illegal to access the underlying allocation as the allocation may be evicted at anytime from there on at the operating system discretion.

Requirements

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

See also

D3DDDICB_EVICT