VertexElement.VertexElement Method (Microsoft.Xna.Framework.Graphics)

Initializes a new instance of the VertexElement struct.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public VertexElement(
	int offset, 
	VertexElementFormat elementFormat, 
	VertexElementUsage elementUsage, 
	int usageIndex

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.Int32
The offset in bytes from the beginning of the stream to the vertex element.
Type: Microsoft.Xna.Framework.Graphics.VertexElementFormat
The element format.
Type: Microsoft.Xna.Framework.Graphics.VertexElementUsage
The HLSL semantic of the element in the vertex shader input-signature.
Type: System.Int32
The semantic index, which is required if the semantic is used for more than one vertex element.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop