Export (0) Print
Expand All

ID3DX10Mesh::GetDeviceVertexBuffer method

Access the mesh's vertex buffer after it has been committed to the device with ID3DX10Mesh::CommitToDevice. This is different from ID3DX10Mesh::GetVertexBuffer, which returns the vertex buffer before it has been committed to the device.

Syntax


HRESULT GetDeviceVertexBuffer(
  [in]   UINT iBuffer,
  [out]  ID3D10Buffer **ppVertexBuffer
);

Parameters

iBuffer [in]

Type: UINT

An index identifying which vertex buffer to access.

ppVertexBuffer [out]

Type: ID3D10Buffer**

The vertex buffer after it has been committed to the device.

Return value

Type: HRESULT

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

Requirements

Header

D3DX10.h

Library

D3DX10.lib

See also

ID3DX10Mesh
D3DX Interfaces

 

 

Community Additions

ADD
Show:
© 2015 Microsoft