共用方式為


D3DDDICB_EVICT 結構 (d3dumddi.h)

D3DKMT_EVICT 會與 pfnEvictCb 搭配使用,以從落地參考計數減去一個。

一旦此計數達到零,它會從裝置落地清單中移除配置。

語法

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 (include D3dumddi.h)

另請參閱

D3DDDI_EVICT_FLAGS

pfnEvictCb