D3DXGenerateOutputDecl
Microsoft DirectX 9.0 SDK Update (October 2004)

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 WINAPI 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 Value

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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Function Information

Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.