IDirect3DDevice9::CreateVertexDeclaration method (d3d9helper.h)
Create a vertex shader declaration from the device and the vertex elements.
Syntax
HRESULT CreateVertexDeclaration(
[in] const D3DVERTEXELEMENT9 *pVertexElements,
[out, retval] IDirect3DVertexDeclaration9 **ppDecl
);
Parameters
[in] pVertexElements
Type: const D3DVERTEXELEMENT9*
An array of D3DVERTEXELEMENT9 vertex elements.
[out, retval] ppDecl
Type: IDirect3DVertexDeclaration9**
Pointer to an IDirect3DVertexDeclaration9 pointer that returns the created vertex shader declaration.
Return value
Type: HRESULT
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d9helper.h (include D3D9.h) |
Library | D3D9.lib |