# VertexAttributeType

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/VertexLayout.kt+class:androidx.xr.scenecore.VertexAttributeType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class VertexAttributeType
```

<br />

*** ** * ** ***

Defines the type of data for a vertex attribute.

This class is used to define the data type and component count for a vertex attribute in a `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeDescriptor`.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#FLOAT()` A single 32-bit floating point value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#FLOAT2()` Two 32-bit floating point values. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#FLOAT3()` Three 32-bit floating point values. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#FLOAT4()` Four 32-bit floating point values. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#UBYTE4()` Four unsigned 8-bit integers. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#UBYTE4_NORM()` Four unsigned 8-bit integers, normalized to 0, 1. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/VertexAttributeType#toString()()` |

## 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()
```