D3DX10_MESHOPT enumeration

Specifies the type of mesh optimization to be performed.

Syntax

typedef enum D3DX10_MESHOPT { 
  D3DX10_MESHOPT_COMPACT             = 0x01000000,
  D3DX10_MESHOPT_ATTR_SORT           = 0x02000000,
  D3DX10_MESHOPT_VERTEX_CACHE        = 0x04000000,
  D3DX10_MESHOPT_STRIP_REORDER       = 0x08000000,
  D3DX10_MESHOPT_IGNORE_VERTS        = 0x10000000,
  D3DX10_MESHOPT_DO_NOT_SPLIT        = 0x20000000,
  D3DX10_MESHOPT_DEVICE_INDEPENDENT  = 0x00400000
} D3DX10_MESHOPT, *LPD3DX10_MESHOPT;

Constants

D3DX10_MESHOPT_COMPACT

Reorders faces to remove unused vertices and faces.

D3DX10_MESHOPT_ATTR_SORT

Reorders faces to optimize for fewer attribute bundle state changes and enhanced DrawSubset performance.

D3DX10_MESHOPT_VERTEX_CACHE

Reorders faces to increase the cache hit rate of vertex caches.

D3DX10_MESHOPT_STRIP_REORDER

Reorders faces to maximize length of adjacent triangles.

D3DX10_MESHOPT_IGNORE_VERTS

Optimize the faces only; do not optimize the vertices.

D3DX10_MESHOPT_DO_NOT_SPLIT

While attribute sorting, do not split vertices that are shared between attribute groups.

D3DX10_MESHOPT_DEVICE_INDEPENDENT

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
D3DX10Mesh.h

See also

D3DX Enumerations