D3DKMT_EVICT structure (d3dkmthk.h)

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.

Syntax

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;

Members

[in] hDevice

Device that created the allocations passed to this call.

[in] NumAllocations

Number of allocation handles in the AllocationList array.

[in] AllocationList

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

[in] Flags

Specifies eviction behavior as documented in D3DDDI_EVICT_FLAGS.

[out] NumBytesToTrim

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

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DDDI_EVICT_FLAGS

D3DKMTEvict