D3DXGenerateOutputDecl

Generates an output vertex declaration from the input declaration. The output declaration is intended for use by the mesh tessellation functions.

HRESULT D3DXGenerateOutputDecl(
  D3DVERTEXELEMENT9 * pOutput,
  CONST D3DVERTEXELEMENT9 * pInput
);

Parameters

pOutput
[out] Pointer to the output vertex declaration. See D3DVERTEXELEMENT9.
pInput
[in] Pointer to the input vertex declaration. See D3DVERTEXELEMENT9.

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 values: D3DERR_INVALIDCALL.

Requirements

Header: Declared in D3dx9mesh.h.