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) |
Library | D3D9.lib |
另请参阅
IDirect3DDevice9::DrawIndexedPrimitive
IDirect3DDevice9::DrawIndexedPrimitiveUP
IDirect3DDevice9::DrawPrimitive
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈