VertexElement.UsageIndex Property (Microsoft.Xna.Framework.Graphics)

Gets or sets the semantic index.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public int UsageIndex { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Int32
The semantic index, which is required if the semantic is used for more than one vertex element.
Usage indices in a vertex declaration usually start with 0. When multiple vertex buffers are bound to the input assembler stage (see SetVertexBuffers(VertexBufferBinding[])), MonoGame internally adjusts the usage indices based on the order in which the vertex buffers are bound.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web