VertexContent.CreateVertexBuffer Method
Note
This method is available only when developing for Windows.
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 VertexBufferContent CreateVertexBuffer ()
Return Value
A packed vertex buffer.
Exceptions
Exception type | Condition |
---|---|
InvalidContentException | One or more of the vertex channel types are invalid or an unrecognized name was passed to VertexElementUsage. |
See Also
Reference
VertexContent Class
VertexContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP