VertexChannelCollection.Add<ElementType> 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<ElementType> Add<ElementType>( string name, IEnumerable<ElementType> 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.
- channelData
-
Type: IEnumerable<ElementType>
Initial data for the new channel. If null, the channel is filled with the default value for that type.
Return Value
Type: VertexChannel<ElementType>The newly added vertex channel.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop