Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
Direct3D Reference
Interfaces
IDirect3DDevice9
 IDirect3DDevice9::CreateVertexDecla...

  Switch on low bandwidth view
IDirect3DDevice9::CreateVertexDeclaration
Bb174365.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174365.XDK_CHM_BANNER_right(en-us,VS.85).jpg

IDirect3DDevice9::CreateVertexDeclaration

Create a vertex shader declaration from the device and the vertex elements.

HRESULT CreateVertexDeclaration(
  CONST D3DVERTEXELEMENT9* pVertexElements,
  IDirect3DVertexDeclaration9** ppDecl
);

Parameters

pVertexElements
[in] An array of D3DVERTEXELEMENT9 vertex elements.
ppDecl
[out, retval] Pointer to an IDirect3DVertexDeclaration9 pointer that returns the created vertex shader declaration.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

See the Vertex Declaration (Direct3D 9) page for a detailed description of how to map vertex declarations between different versions of DirectX.

Requirements

Header: Declared in D3D9.h.

Library: Use D3D9.lib.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker