VertexAttributeDescriptor


@ExperimentalCustomMeshApi
public final 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(
    @NonNull VertexAttribute attribute,
    @NonNull VertexAttributeType type,
    @IntRange(from = 0) int bufferIndex
)

Public methods

boolean
equals(Object other)
final @NonNull VertexAttribute

The VertexAttribute semantic being described.

final int

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

final @NonNull VertexAttributeType

The VertexAttributeType data type of the attribute.

int
@NonNull String

Public constructors

VertexAttributeDescriptor

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

The VertexAttribute semantic being described.

@NonNull VertexAttributeType type

The VertexAttributeType data type of the attribute.

@IntRange(from = 0) int bufferIndex

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

Public methods

equals

public boolean equals(Object other)

getAttribute

Added in 1.0.0-alpha15
public final @NonNull VertexAttribute getAttribute()

The VertexAttribute semantic being described.

getBufferIndex

Added in 1.0.0-alpha15
public final int getBufferIndex()

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

getType

Added in 1.0.0-alpha15
public final @NonNull VertexAttributeType getType()

The VertexAttributeType data type of the attribute.

hashCode

public int hashCode()

toString

public @NonNull String toString()