d3d9.dllSetVertexDeclaration
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DDevice9::SetVertexDeclaration Method


Sets a vertex shader declaration.

Syntax

HRESULT SetVertexDeclaration(      

    IDirect3DVertexDeclaration9 *pDecl );

Parameters

pDecl
[in] Pointer to an IDirect3DVertexDeclaration9 object, which contains the vertex declaration.

Return Value

If the method succeeds, the return value is D3D_OK.

The return value can be D3DERR_INVALIDCALL.

See Also

IDirect3DDevice9::GetVertexDeclaration


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.