public final 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

public final class VertexLayout.Builder

Builder for VertexLayout.

Public methods

boolean
equals(Object other)
final @NonNull List<@NonNull VertexBufferLayout>

List of VertexBufferLayouts defining the vertex layout.

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getBuffers

Added in 1.0.0-alpha16
public final @NonNull List<@NonNull VertexBufferLayoutgetBuffers()

List of VertexBufferLayouts defining the vertex layout.

hashCode

public int hashCode()

toString

public @NonNull String toString()