Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DXMESHOPT

Defines the type of optimizations that can be performed on a mesh.

Enum CONST_D3DXMESHOPT
    D3DXMESHOPT_COMPACT      =  1
    D3DXMESHOPT_ATTRSORT     =  2
    D3DXMESHOPT_VERTEXCACHE  =  4
    D3DXMESHOPT_IGNOREVERTS  = 16
    D3DXMESHOPT_SHAREVB      = 32
End Enum

Constants

D3DXMESHOPT_COMPACT
Reorders faces to remove unused vertices and faces.
D3DXMESHOPT_ATTRSORT
Reorders faces to optimize for fewer attribute bundle state changes and enhanced D3DXBaseMesh.DrawSubset performance.
D3DXMESHOPT_VERTEXCACHE
Reorders faces to increase the cache hit rate of vertex caches.
D3DXMESHOPT_IGNOREVERTS
Optimize the faces only; do not optimize the vertices.
D3DXMESHOPT_SHAREVB
Share vertex buffers.

See Also

D3DX8.LoadMeshFromX, D3DX8.LoadMeshFromXof, D3DXMesh.Optimize