D3DXMESHOPT
Specifies the type of mesh optimization to be performed.
enum _D3DXMESHOPT {
D3DXMESHOPT_COMPACT = 0x01000000,
D3DXMESHOPT_ATTRSORT = 0x02000000,
D3DXMESHOPT_VERTEXCACHE = 0x04000000,
D3DXMESHOPT_STRIPREORDER = 0x08000000,
D3DXMESHOPT_IGNOREVERTS = 0x10000000,
D3DXMESHOPT_SHAREVB = 0x1000,
};
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 ID3DXBaseMesh::DrawSubset performance.
- D3DXMESHOPT_VERTEXCACHE
- Reorders faces to increase the cache hit rate of vertex caches.
- D3DXMESHOPT_STRIPREORDER
- Reorders faces to maximize length of adjacent triangles.
- D3DXMESHOPT_IGNOREVERTS
- Optimize the faces only; do not optimize the vertices.
- D3DXMESHOPT_SHAREVB
- Share vertex buffers.
Notes
The D3DXMESHOPT_STRIPREORDER and D3DXMESHOPT_VERTEXCACHE optimization flags are mutually exclusive.
Requirements
Header: Declared in D3d8mesh.h.