D3DXTriPatchSize

Gets the size of the triangle patch.

HRESULT D3DXTriPatchSize(
  CONST LOAT * pfNumSegs,
  DWORD * pdwTriangles,
  DWORD * pdwVertices
);

Parameters

pfNumSegs
[in] Number of segments per edge to tessellate.
pdwTriangles
[out] Pointer to a DWORD that contains the number of triangles in the patch.
pdwVertices
[out] Pointer to a DWORD that contains the number of vertices in the triangle patch.

Return Values

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.

Requirements

Header: Declared in D3dx9mesh.h.

See Also

D3DXTessellateTriPatch