Validates a patch mesh, returning the number of degenerate vertices and patches.
HRESULT D3DXValidPatchMesh( LPD3DXPATCHMESH pMeshIn, DWORD * pNumDegenerateVertices, DWORD * pNumDegeneratePatches, 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: 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.