D3DXMESHOPT enumeration
Specifies the type of mesh optimization to be performed.
Syntax
enum _D3DXMESHOPT {
D3DXMESHOPT_COMPACT = 0x01000000,
D3DXMESHOPT_ATTRSORT = 0x02000000,
D3DXMESHOPT_VERTEXCACHE = 0x04000000,
D3DXMESHOPT_STRIPREORDER = 0x08000000,
D3DXMESHOPT_IGNOREVERTS = 0x10000000,
D3DXMESHOPT_DONOTSPLIT = 0x20000000,
D3DXMESHOPT_DEVICEINDEPENDENT = 0x40000000
};
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_DONOTSPLIT
-
While attribute sorting, do not split vertices that are shared between attribute groups.
-
D3DXMESHOPT_DEVICEINDEPENDENT
-
Affects the vertex cache size. Using this flag specifies a default vertex cache size that works well on legacy hardware.
Remarks
The D3DXMESHOPT_STRIPREORDER and D3DXMESHOPT_VERTEXCACHE optimization flags are mutually exclusive.
The D3DXMESHOPT_SHAREVB flag has been removed from this enumeration. Use D3DXMESH_VB_SHARE instead, in D3DXMESH.
Requirements
Requirement | Value |
---|---|
Header |
|
See also