次の方法で共有


GraphicsDevice.VertexDeclaration Property

Gets or sets a vertex shader declaration.

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

Syntax

public VertexDeclaration VertexDeclaration { get; set; }

Property Value

The vertex shader declaration.

Exceptions

Exception type Condition
ObjectDisposedException VertexDeclaration was called after this GraphicsDevice was disposed.

Remarks

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

See Also

Reference

GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista