@ExperimentalCustomMeshApi
class VertexLayout


Layout of a vertex, composed of multiple attribute descriptors.

A VertexLayout describes the complete structure of vertices in a MeshBuffer, which may span across multiple vertex buffers.

Throws
IllegalArgumentException

if attributes does not contain a VertexAttribute.POSITION attribute, or if it contains duplicate attributes.

Summary

Public constructors

Public functions

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

Public properties

List<VertexAttributeDescriptor>

List of VertexAttributeDescriptors defining the vertex layout.

Public constructors

VertexLayout

Added in 1.0.0-alpha15
VertexLayout(attributes: List<VertexAttributeDescriptor>)
Parameters
attributes: List<VertexAttributeDescriptor>

List of VertexAttributeDescriptors defining the vertex layout.

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

attributes

Added in 1.0.0-alpha15
val attributesList<VertexAttributeDescriptor>

List of VertexAttributeDescriptors defining the vertex layout.