VertexAttributeType


@ExperimentalCustomMeshApi
public final class VertexAttributeType


Defines the type of data for a vertex attribute.

This specifies the data type and component count for an attribute in the vertex buffer.

Summary

Public fields

static final @NonNull VertexAttributeType

A single 32-bit floating point value.

static final @NonNull VertexAttributeType

Two 32-bit floating point values.

static final @NonNull VertexAttributeType

Three 32-bit floating point values.

static final @NonNull VertexAttributeType

Four 32-bit floating point values.

static final @NonNull VertexAttributeType

Four unsigned 8-bit integers.

static final @NonNull VertexAttributeType

Four unsigned 8-bit integers, normalized to 0, 1.

Public methods

boolean
equals(Object other)
int
@NonNull String

Public fields

FLOAT

public static final @NonNull VertexAttributeType FLOAT

A single 32-bit floating point value.

FLOAT2

public static final @NonNull VertexAttributeType FLOAT2

Two 32-bit floating point values.

FLOAT3

public static final @NonNull VertexAttributeType FLOAT3

Three 32-bit floating point values.

FLOAT4

public static final @NonNull VertexAttributeType FLOAT4

Four 32-bit floating point values.

UBYTE4

public static final @NonNull VertexAttributeType UBYTE4

Four unsigned 8-bit integers.

UBYTE4_NORM

public static final @NonNull VertexAttributeType UBYTE4_NORM

Four unsigned 8-bit integers, normalized to 0, 1.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()