D3DXGetDeclVertexSize

Returns the size of a vertex from the vertex declaration.

UINT D3DXGetDeclVertexSize(
  CONST D3DVERTEXELEMENT9 * pDecl,
  DWORD Stream
);

Parameters

pDecl
[in] A pointer to the vertex declaration. See D3DVERTEXELEMENT9.
Stream
[in] The zero-based stream index.

Return Values

The vertex declaration size, in bytes.

Requirements

Header: Declared in D3dx9mesh.h.