Partager via


VertexChannelCollection.Add Method (String, Type, IEnumerable)

Adds a new vertex channel to the end of the collection.

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

Syntax

public VertexChannel Add (
         string name,
         Type elementType,
         IEnumerable channelData
)

Parameters

  • name
    Name of the new channel.
  • elementType
    Type of data to be contained in the new channel.
  • channelData
    Initial data for the new channel. If null, the channel is filled with the default value for that type.

Return Value

The newly added vertex channel.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista