D3DXFVFFromDeclarator function

Returns a flexible vertex format (FVF) code from a declarator.

Syntax

HRESULT D3DXFVFFromDeclarator(
  _In_  const LPD3DVERTEXELEMENT9 *pDeclaration,
  _Out_       DWORD               *pFVF
);

Parameters

pDeclaration [in]

Type: const LPD3DVERTEXELEMENT9*

Array of D3DVERTEXELEMENT9 elements, describing the FVF code.

pFVF [out]

Type: DWORD*

Pointer to a DWORD value, representing the returned combination of D3DFVF that describes the vertex format returned from the declarator.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be: D3DERR_INVALIDCALL.

Remarks

This function will fail for any declarator that does not map directly to an FVF.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

Mesh Functions

D3DXDeclaratorFromFVF