ID3DX10Mesh::GetVertexDescription method

Access the vertex description passed into D3DX10CreateMesh. The vertex description describes the layout of the mesh's vertex buffers.

Syntax

HRESULT GetVertexDescription(
  [out] const D3D10_INPUT_ELEMENT_DESC **ppDesc,
  [in]        UINT                     *pDeclCount
);

Parameters

ppDesc [out]

Type: const D3D10_INPUT_ELEMENT_DESC**

Array of input elements that describe the layout of the mesh's vertex buffers. See D3D10_INPUT_ELEMENT_DESC.

pDeclCount [in]

Type: UINT*

The number of input elements in ppDesc.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Mesh

D3DX Interfaces