D3DDDI_MAKERESIDENT 結構 (d3dukmdt.h)

D3DDDI_MAKERESIDENTMakeResident (pfnMakeResidentCbD3DKMTMakeResident) 搭配使用,指示 OS 將資源新增至裝置落地清單,並遞增此配置的落地參考計數。

語法

typedef struct D3DDDI_MAKERESIDENT {
  [in]     D3DKMT_HANDLE             hPagingQueue;
  [in/out] UINT                      NumAllocations;
  void                      D3DKMT_PTR(
    const D3DKMT_HANDLE *unnamedParam1,
    AllocationList      unnamedParam2
  );
  void                      D3DKMT_PTR(
    const UINT   *unnamedParam1,
    PriorityList unnamedParam2
  );
  [in]     D3DDDI_MAKERESIDENT_FLAGS Flags;
  [out]    D3DKMT_ALIGN64 UINT64     PagingFenceValue;
  [out]    D3DKMT_ALIGN64 UINT64     NumBytesToTrim;
} D3DDDI_MAKERESIDENT;

成員

[in] hPagingQueue

建立輸入配置之裝置上的分頁佇列。 此佇列將用於落地作業。

[in/out] NumAllocations

在輸入時, AllocationList 陣列中的配置句柄數目和 PriorityList 陣列中的配置優先順序值。 在輸出時,已成功將配置數目設為常駐。

void D3DKMT_PTR( const D3DKMT_HANDLE *unnamedParam1, AllocationList unnamedParam2)

void D3DKMT_PTR( const UINT *unnamedParam1, PriorityList unnamedParam2)

[in] Flags

指定如 D3DDDI_MAKERESIDENT_FLAGS中所述的記憶體落地行為。

[out] PagingFenceValue

當MakeResident傳回E_PENDING時,此成員會指出要等候的分頁佇欄值。

[out] NumBytesToTrim

當MakeResident傳回E_OUTOFMEMORY時,此成員會指出當配置 () 已成為常駐時,應用程式會超過預算的位元元組數目。

規格需求

需求
最低支援的用戶端 Windows 10
最低支援的伺服器 Windows Server 2016
標頭 d3dukmdt.h (包含 D3dumddi.h、D3dkmddi.h)

另請參閱

D3DDDI_MAKERESIDENT_FLAGS

D3DKMTMakeResident

pfnMakeResidentCb