D3DXFVFFromDeclarator

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

HRESULT D3DXFVFFromDeclarator(
  CONST LPD3DVERTEXELEMENT9 * pDeclaration,
  DWORD * pFVF
);

Parameters

pDeclaration
[in] Array of D3DVERTEXELEMENT9 elements, describing the FVF code.
pFVF
[out] Pointer to a DWORD value, representing the returned combination of D3DFVF that describes the vertex format returned from the declarator.

Return Values

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

Header: Declared in D3dx9mesh.h.

See Also

D3DXDeclaratorFromFVF