Sets a Vertex Declaration.
HRESULT SetVertexDeclaration( IDirect3DVertexDeclaration9 * pDecl );
If the method succeeds, the return value is D3D_OK. The return value can be D3DERR_INVALIDCALL.
A vertex declaration is an IDirect3DVertexDeclaration9 object that defines the data members of a vertex (i.e. texture coordinates, colors, normals, etc.). This data can be useful for implementing vertex shaders and pixel shaders.
Header: Declared in D3d9.h.