VertexElement

data class VertexElement(val attribute: String, val offset: Int, val type: VertexElementType, val arraySize: Int)(source)

Represents a single element within a vertex, describing the structure of vertex data in a graphics pipeline.

Constructors

Link copied to clipboard
constructor(attribute: String, offset: Int, type: VertexElementType, arraySize: Int)

Properties

Link copied to clipboard

The number of elements in this vertex attribute array; typically 1 for non-array attributes.

Link copied to clipboard

The name of the attribute this element corresponds to (e.g., position, color, normal).

Link copied to clipboard
val offset: Int

The byte offset of this element within a vertex structure.

Link copied to clipboard

The data type of this vertex element, represented by VertexElementType.