Vertex

Represents a vertex with position, color, normal, and UV attributes.

Remarks

Initializes a new instance of the Vertex struct with the specified position and color.

Fields

Position (Vector3) = Pos: The position of the vertex in 3D space.

Color (Vector3) = Color: The color of the vertex.

Normal (Vector3): The normal vector of the vertex.

Uv (Vector2): The UV (texture coordinates) of the vertex.

Tangent (Vector4): The tangent vector (XYZ) plus handedness sign in W (glTF convention).

Public Methods

SizeOf

public static uint SizeOf()

Gets the size in bytes of the Vertex struct.

Returns: uint

  • The size of the struct in bytes.

GetBindingDescriptions

public static VertexInputBindingDescription[] GetBindingDescriptions()

Gets an array of vertex input binding descriptions for this vertex format.

Returns: VertexInputBindingDescription[]

  • An array of VertexInputBindingDescription objects.

GetAttributeDescriptions

public static VertexInputAttributeDescription[] GetAttributeDescriptions()

Gets an array of vertex input attribute descriptions for this vertex format.

Returns: VertexInputAttributeDescription[]

  • An array of VertexInputAttributeDescription objects.