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 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- 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.
Parameters
- offset
-
Type: System.Int32
The offset in bytes from the beginning of the stream to the vertex element.
- elementFormat
-
Type: Microsoft.Xna.Framework.Graphics.VertexElementFormat
The element format.
- elementUsage
-
Type: Microsoft.Xna.Framework.Graphics.VertexElementUsage
The HLSL semantic of the element in the vertex shader input-signature.
- usageIndex
-
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
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web