MeshBuilder.SetVertexChannelData Method
Note
This method is available only when developing for Windows.
Sets the specified vertex data with new data.
Syntax
'Declaration
Public Sub SetVertexChannelData ( _
vertexDataIndex As Integer, _
channelData As Object _
)
public void SetVertexChannelData (
int vertexDataIndex,
Object channelData
)
public:
void SetVertexChannelData(
int vertexDataIndex,
Object channelData
)
Parameters
- vertexDataIndex
Type: Int32
Index of the vertex data channel being set. This should match the index returned by CreateVertexChannel. - channelData
Type: Object
New data values for the vertex data. The data type being set must match the data type for the vertex channel specified by vertexDataIndex.
Remarks
The following table lists the exceptions that can be thrown by this method:
Exception | Cause |
---|---|
KeyNotFoundException | If vertexDataIndex does not correspond to an actual vertex data channel created using CreateVertexChannel. |
InvalidOperationException | If the type of channelData does not match the data type for the vertex channel specified by vertexDataIndex. |
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
MeshBuilder Class
MeshBuilder Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP