IDirect3DDevice9::GetIndices 方法 (d3d9helper.h)

擷取索引數據。

語法

HRESULT GetIndices(
  IDirect3DIndexBuffer9 **ppIndexData
);

參數

ppIndexData

類型: [out] IDirect3DIndexBuffer9**

IDirect3DIndexBuffer9 介面指標的位址,代表傳回的索引數據。

傳回值

類型: HRESULT

如果方法成功,傳回值會D3D_OK。 如果方法失敗,則傳回值可以D3DERR_INVALIDCALL。

備註

呼叫這個方法將會增加 IDirect3DIndexBuffer9 介面上的內部參考計數。 使用這個 IDirect3DIndexBuffer9 介面完成時,無法呼叫 IUnknown::Release 會導致記憶體流失。

規格需求

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

另請參閱

IDirect3DDevice9

IDirect3DDevice9::DrawIndexedPrimitive

IDirect3DDevice9::DrawIndexedPrimitiveUP

IDirect3DDevice9::DrawPrimitive

IDirect3DDevice9::DrawPrimitiveUP

IDirect3DDevice9::SetIndices

(Direct3D 9) 索引緩衝區