PFND3D12DDI_EVICT2 callback function

PFND3D12DDI_EVICT2 instructs the OS to decrement the residency reference count. Once this count reaches zero, it will remove the allocation from the device residency list.

Syntax

PFND3D12DDI_EVICT2 Pfnd3d12ddiEvict2;

HRESULT Pfnd3d12ddiEvict2(
  D3D12DDI_HDEVICE Arg1,
  const D3D12DDIARG_EVICT *Arg2
)
{...}

Parameters

Arg1

A handle to the display device.

Arg2

A pointer to a D3D12DDIARG_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

   
Header d3d12umddi.h