D3DXOptimizeFaces (D3DX9_36.@)
HRESULT D3DXOptimizeFaces ( const void* indices, UINT num_faces, UINT num_vertices, BOOL indices_are_32bit, DWORD* face_remap )
Re-orders the faces so the vertex cache is used optimally.
indices | [In] | Pointer to an index buffer belonging to a mesh. |
num_faces | [In] | Number of faces in the mesh. |
num_vertices | [In] | Number of vertices in the mesh. |
indices_are_32bit | [In] | Specifies whether indices are 32- or 16-bit. |
face_remap | [In/Out] | The new order the faces should be drawn in. |
Success: D3D_OK.
Failure: D3DERR_INVALIDCALL.
The face re-ordering does not use the vertex cache optimally.
Declared in "include/d3dx9mesh.h". gitlab.winehq.org/wine/wine/blob/master/include/d3dx9mesh.h
Implemented in "dlls/d3dx9_36/mesh.c". gitlab.winehq.org/wine/wine/blob/master/dlls/d3dx9_36/mesh.c
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.