ID3DX10Mesh::SetVertexData method

Set vertex data into one of the mesh's vertex buffers.

Syntax

HRESULT SetVertexData(
  [in]       UINT iBuffer,
  [in] const void *pData
);

Parameters

iBuffer [in]

Type: UINT

The vertex buffer to be filled with pData.

pData [in]

Type: const void*

The vertex data to set.

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