GraphicsDevice.VertexDeclaration Property

Gets or sets a vertex shader declaration.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public VertexDeclaration VertexDeclaration { get; set; }

Property Value

The vertex shader declaration.

Exception typeCondition
ObjectDisposedException VertexDeclaration was called after this GraphicsDevice was disposed.

A vertex shader declaration is made up of an array of vertex elements.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions