D3DXGenerateOutputDecl function

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

Syntax

HRESULT D3DXGenerateOutputDecl(
  _Out_       D3DVERTEXELEMENT9 *pOutput,
  _In_  const D3DVERTEXELEMENT9 *pInput
);

Parameters

pOutput [out]

Type: D3DVERTEXELEMENT9*

Pointer to the output vertex declaration. See D3DVERTEXELEMENT9.

pInput [in]

Type: const D3DVERTEXELEMENT9*

Pointer to the input vertex declaration. See D3DVERTEXELEMENT9.

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

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

Mesh Functions