D3DKMT_EVICT - NtDoc

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

typedef struct _D3DKMT_EVICT {
  [in]  D3DKMT_HANDLE         hDevice;
  [in]  UINT                  NumAllocations;
  [in]  const D3DKMT_HANDLE   *AllocationList;
  [in]  D3DDDI_EVICT_FLAGS    Flags;
  [out] D3DKMT_ALIGN64 UINT64 NumBytesToTrim;
} D3DKMT_EVICT;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dkmthk-_d3dkmt_evict)

_D3DKMT_EVICT structure

Description

D3DKMT_EVICT is used with D3DKMTEvict to subtract one from the residency reference count.

Once this count reaches zero, it will remove the allocation from the device residency list.

Members

hDevice [in]

Device that created the allocations passed to this call.

NumAllocations [in]

Number of allocation handles in the AllocationList array.

AllocationList [in]

An array of NumAllocations allocation handles to mark for eviction. All allocations must be created on hDevice.

Flags [in]

Specifies eviction behavior as documented in D3DDDI_EVICT_FLAGS.

NumBytesToTrim [out]

When non-zero, specifies how much the application should evict in order to meet its current memory budget.

See also

D3DDDI_EVICT_FLAGS

D3DKMTEvict