class VertexLayout


Layout of a vertex, composed of multiple buffer layouts.

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

Throws
IllegalArgumentException

if buffers is empty, if the layout does not contain a VertexAttribute.POSITION attribute, if it contains duplicate attributes, or if only one of VertexAttribute.BONE_INDICES or VertexAttribute.BONE_WEIGHTS is present.

Summary

Nested types

Builder for VertexLayout.

Public functions

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

Public properties

List<VertexBufferLayout>

List of VertexBufferLayouts 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

buffers

Added in 1.0.0-alpha16
val buffersList<VertexBufferLayout>

List of VertexBufferLayouts defining the vertex layout.