共用方式為


VertexContent.CreateVertexBuffer Method

Converts design-time vertex position and channel data into a vertex buffer format that a graphics device can recognize.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public void CreateVertexBuffer (
         out VertexBufferContent vertexBuffer,
         out VertexElement[] vertexElements
)

Parameters

Remarks

CreateVertexBuffer throws InvalidContentException if any vertex channels have invalid element types or names that do not correspond to the graphics VertexElementUsage enumeration.

See Also

Reference

VertexContent Class
VertexContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista