Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Show:
© 2015 Microsoft