@ExperimentalCustomMeshApi
public final 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 methods

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

List of VertexAttributeDescriptors defining the vertex layout.

int
@NonNull String

Public constructors

VertexLayout

Added in 1.0.0-alpha15
public VertexLayout(@NonNull List<@NonNull VertexAttributeDescriptor> attributes)
Parameters
@NonNull List<@NonNull VertexAttributeDescriptor> attributes

List of VertexAttributeDescriptors defining the vertex layout.

Public methods

equals

public boolean equals(Object other)

getAttributes

Added in 1.0.0-alpha15
public final @NonNull List<@NonNull VertexAttributeDescriptorgetAttributes()

List of VertexAttributeDescriptors defining the vertex layout.

hashCode

public int hashCode()

toString

public @NonNull String toString()