Create a vertex shader declaration from the device and the vertex elements.
HRESULT CreateVertexDeclaration( CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl );
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.
See the Vertex Declaration page for a detailed description of how to map vertex declarations between different versions of DirectX.
Header: Declared in D3d9.h.