D3DXGetDeclVertexSize function

Returns the size of a vertex from the vertex declaration.

Syntax

UINT D3DXGetDeclVertexSize(
  _In_ const D3DVERTEXELEMENT9 *pDecl,
  _In_       DWORD             Stream
);

Parameters

pDecl [in]

Type: const D3DVERTEXELEMENT9*

A pointer to the vertex declaration. See D3DVERTEXELEMENT9.

Stream [in]

Type: DWORD

The zero-based stream index.

Return value

Type: UINT

The vertex declaration size, in bytes.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

Mesh Functions