D3DXValidMesh function
Validates a mesh.
Syntax
HRESULT D3DXValidMesh(
_In_ LPD3DXMESH pMeshIn,
_In_ const DWORD *pAdjacency,
_Out_ LPD3DXBUFFER *ppErrorsAndWarnings
);
Parameters
-
pMeshIn [in]
-
Type: LPD3DXMESH
Pointer to an ID3DXMesh interface, representing the mesh to be tested.
-
pAdjacency [in]
-
Type: const DWORD*
Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh to be tested.
-
ppErrorsAndWarnings [out]
-
Type: LPD3DXBUFFER*
Returns a buffer containing a string of errors and warnings, which explain the problems found in the mesh.
Return value
Type: HRESULT
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.
Remarks
This method validates the mesh by checking for invalid indices. Error information is available from the debugger output.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also