VertexElement Structure (Microsoft.Xna.Framework.Graphics)

Defines a single element in a vertex.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = -1, Size = -1)]
public struct VertexElement : IEquatable<VertexElement>

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The VertexElement type exposes the following members.

  Platforms Name Description
VertexElement Initializes a new instance of the VertexElement struct. 
Top
  Platforms Name Description
Offset Gets or sets the offset in bytes from the beginning of the stream to the vertex element. 
UsageIndex Gets or sets the semantic index. 
VertexElementFormat Gets or sets the data format. 
VertexElementUsage Gets or sets the HLSL semantic of the element in the vertex shader input. 
Top
  Platforms Name Description
Equals(object) Determines whether the specified System.Object is equal to this instance. (Overrides ValueType.Equals().)
Equals(VertexElement) Determines whether the specified VertexElement is equal to this instance. (Implements IEquatable<T>.Equals().)
GetHashCode Returns a hash code for this instance. (Overrides ValueType.GetHashCode().)
ToString Returns a System.String that represents this instance. (Overrides ValueType.ToString().)
Top
  Platforms Name Description
Equality Compares two VertexElement instances to determine whether they are the same. 
Inequality Compares two VertexElement instances to determine whether they are different. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web