VertexChannelCollection.Add Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Adds a new vertex channel to the end of the collection.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public VertexChannel Add( string name, Type elementType, IEnumerable channelData )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- name
-
Type: System.String
Name of the new channel.
- elementType
-
Type: System.Type
Type of data to be contained in the new channel.
- channelData
-
Type: System.Collections.IEnumerable
Initial data for the new channel. If null, the channel is filled with the default value for that type.
Return Value
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.VertexChannelThe newly added vertex channel.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop