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