D3DKMT_TRIMNOTIFICATION structure (d3dkmthk.h)

D3DKMT_TRIMNOTIFICATION is used to notify a driver to trim its memory residency list.

Syntax

typedef struct _D3DKMT_TRIMNOTIFICATION {
  [in] VOID                          *Context;
  [in] D3DDDI_TRIMRESIDENCYSET_FLAGS Flags;
  [in] D3DKMT_ALIGN64 UINT64         NumBytesToTrim;
} D3DKMT_TRIMNOTIFICATION;

Members

[in] Context

The caller-supplied context for the callback notification.

[in] Flags

A D3DDDI_TRIMRESIDENCYSET_FLAGS structure containing the trimming behavior flags.

[in] NumBytesToTrim

When TrimToBudget is set, this value 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_TRIMRESIDENCYSET_FLAGS