PFND3D12DDI_EVICT_CB - NtDoc

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

PFND3D12DDI_EVICT_CB Pfnd3d12ddiEvictCb;

HRESULT Pfnd3d12ddiEvictCb(
  D3D12DDI_HRTDEVICE hRTDevice,
  const D3DDDICB_EVICT *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d12umddi-pfnd3d12ddi_evict_cb)

PFND3D12DDI_EVICT_CB callback function

Description

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

Parameters

hRTDevice

A handle to the display device.

unnamedParam2

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.

Prototype

//Declaration

PFND3D12DDI_EVICT_CB Pfnd3d12ddiEvictCb;

// Definition

HRESULT Pfnd3d12ddiEvictCb
(
    D3D12DDI_HRTDEVICE hRTDevice
     const D3DDDICB_EVICT *
)
{...}

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.

See also