D3DXRectPatchSize

Gets the size of the rectangle patch.

HRESULT D3DXRectPatchSize(
  CONST FLOAT * pfNumSegs,
  DWORD * pdwTriangles,
  DWORD * pwdVertices
);

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.
pwdVertices
[out] Pointer to a DWORD that contains the number of vertices in the 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

D3DXTessellateRectPatch