GraphicsDevice.VertexShader Property

Gets or sets the current vertex shader.

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

public VertexShader VertexShader { get; set; }

Property Value

The GraphicsDevice's current vertex shader or a vertex shader object to set.

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

Xbox 360, Windows XP SP2, Windows Vista