D3DDDICB_EVICT结构 (d3dumddi.h)

D3DKMT_EVICTpfnEvictCb 一起使用,以从驻留引用计数中减去一个。

此计数达到零后,它将从设备驻留列表中删除分配。

语法

typedef struct D3DDDICB_EVICT {
  [in]  UINT                NumAllocations;
  [in]  const D3DKMT_HANDLE *AllocationList;
  [in]  D3DDDI_EVICT_FLAGS  Flags;
  [out] UINT64              NumBytesToTrim;
} D3DDDICB_EVICT;

成员

[in] NumAllocations

AllocationList 数组中的分配句柄数。

[in] AllocationList

NumAllocations 的数组 分配句柄来标记逐出。 必须在 hDevice上创建所有分配。

[in] Flags

指定 D3DDDI_EVICT_FLAGS中所述的逐出行为。

[out] NumBytesToTrim

当非零时,指定应用程序应逐出多少,以满足其当前内存预算。

要求

要求 价值
最低支持的客户端 Windows 10
支持的最低服务器 Windows Server 2016
标头 d3dumddi.h (包括 D3dumddi.h)

另请参阅

D3DDDI_EVICT_FLAGS

pfnEvictCb