VertexAttributeDescriptor


@ExperimentalCustomMeshApi
class VertexAttributeDescriptor


Descriptor for a single vertex attribute.

Defines how a specific vertex attribute is structured within a vertex buffer.

Throws
IllegalArgumentException

if the given type is incompatible with the given attribute, or if bufferIndex is negative.

Summary

Public constructors

VertexAttributeDescriptor(
    attribute: VertexAttribute,
    type: VertexAttributeType,
    bufferIndex: @IntRange(from = 0) Int
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

VertexAttribute

The VertexAttribute semantic being described.

Int

The index of the vertex buffer where this attribute is stored.

VertexAttributeType

The VertexAttributeType data type of the attribute.

Public constructors

VertexAttributeDescriptor

Added in 1.0.0-alpha15
VertexAttributeDescriptor(
    attribute: VertexAttribute,
    type: VertexAttributeType,
    bufferIndex: @IntRange(from = 0) Int = 0
)
Parameters
attribute: VertexAttribute

The VertexAttribute semantic being described.

type: VertexAttributeType

The VertexAttributeType data type of the attribute.

bufferIndex: @IntRange(from = 0) Int = 0

The index of the vertex buffer where this attribute is stored.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

attribute

Added in 1.0.0-alpha15
val attributeVertexAttribute

The VertexAttribute semantic being described.

bufferIndex

Added in 1.0.0-alpha15
val bufferIndexInt

The index of the vertex buffer where this attribute is stored.

type

Added in 1.0.0-alpha15
val typeVertexAttributeType

The VertexAttributeType data type of the attribute.