Share via


IDirect3DResource9 介面 (d3d9helper.h)

應用程式會使用 IDirect3DResource9 介面的方法來查詢和準備資源。

繼承

IDirect3DResource9 介面繼承自 IUnknown 介面。 IDirect3DResource9 也有下列類型的成員:

方法

IDirect3DResource9 介面具有這些方法。

 
IDirect3DResource9::FreePrivateData

IDirect3DResource9::FreePrivateData 方法 (d3d9helper.h) 釋放與此資源相關聯的指定私人數據。
IDirect3DResource9::GetDevice

IDirect3DResource9::GetDevice 方法 (d3d9helper.h) 擷取與資源相關聯的裝置。
IDirect3DResource9::GetPriority

IDirect3DResource9::GetPriority 方法 (d3d9helper.h) 會擷取此資源的優先順序。
IDirect3DResource9::GetPrivateData

IDirect3DResource9::GetPrivateData 方法 (d3d9helper.h) 會將與資源相關聯的私人數據複製到提供的緩衝區。
IDirect3DResource9::GetType

IDirect3DResource9::GetType 方法 (d3d9helper.h) 會傳回資源的類型。
IDirect3DResource9::P reLoad

IDirect3DResource9::P reLoad 方法 (d3d9helper.h) 預先載入受控資源。
IDirect3DResource9::SetPriority

IDirect3DResource9::SetPriority 方法 (d3d9helper.h) 指派資源的優先順序以供排程之用。
IDirect3DResource9::SetPrivateData

IDirect3DResource9::SetPrivateData 方法 (d3d9helper.h) 會將數據與應用程式所要使用的資源產生關聯,而不是 Direct3D。

備註

若要建立紋理資源,您可以呼叫下列其中一種方法。

若要建立幾何導向的資源,您可以呼叫下列其中一種方法。 此介面就像所有 COM 介面一樣,繼承自 IUnknown 介面。

LPDIRECT3DRESOURCE9和PDIRECT3DRESOURCE9類型會定義為 IDirect3DResource9 介面的指標。


    typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;

規格需求

需求
目標平台 Windows
標頭 d3d9helper.h (包含 D3D9.h)

另請參閱

Direct3D 介面

Direct3D 資源 (Direct3D 9)