Validates a mesh.
HRESULT D3DXValidMesh( LPD3DXMESH pMeshIn, CONST DWORD * pAdjacency, LPD3DXBUFFER * ppErrorsAndWarnings );
If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DXERR_INVALIDMESH, D3DERR_INVALIDCALL, E_OUTOFMEMORY.
This method validates the mesh by checking for invalid indices. Error information is available from the debugger output.
Header: Declared in D3dx9mesh.h.