IDMLDevice::MakeResident 方法 (directml.h)

導致一或多個可分頁物件變成位於 GPU 記憶體中。 另請參閱 IDMLDevice::Evict

語法

HRESULT MakeResident(
       UINT         count,
  [in] IDMLPageable * const *ppObjects
);

參數

count

類型: UINT

此參數會決定 在 ppObjects 參數中傳遞之陣列中的元素數目。

[in] ppObjects

類型: IDMLPageable*

IDMLPageable指標的常數陣列指標指標,其中包含可分頁物件,讓其位於 GPU 記憶體中。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

需求

   
目標平台 Windows
標頭 directml.h
程式庫 DirectML.lib
Dll DirectML.dll

另請參閱

IDMLDevice

IDMLDevice::Evict