XNA Game Studio Express 1.0 Refresh
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

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

Parameters

vertexBuffer
[OutAttribute] A packed vertex buffer.
vertexElements
[OutAttribute] Description of the vertex format.
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

Platforms

Windows XP SP2, Windows Vista

Page view tracker