# VertexFormat

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

*** ** * ** ***


```
public final class VertexFormat
```

<br />

*** ** * ** ***

Specifies the data format of a vertex attribute.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float16() = 25` Single-component, 16-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float16x2() = 26` Two-component, 16-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float16x4() = 27` Four-component, 16-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float32() = 28` Single-component, 32-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float32x2() = 29` Two-component, 32-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float32x3() = 30` Three-component, 32-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Float32x4() = 31` Four-component, 32-bit float. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint16() = 16` Single-component, 16-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint16x2() = 17` Two-component, 16-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint16x4() = 18` Four-component, 16-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint32() = 36` Single-component, 32-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint32x2() = 37` Two-component, 32-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint32x3() = 38` Three-component, 32-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint32x4() = 39` Four-component, 32-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint8() = 4` Single-component, 8-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint8x2() = 5` Two-component, 8-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Sint8x4() = 6` Four-component, 8-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm10_10_10_2() = 42` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm16() = 22` Single-component, 16-bit signed normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm16x2() = 23` Two-component, 16-bit signed normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm16x4() = 24` Four-component, 16-bit signed normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm8() = 10` Single-component, 8-bit signed normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm8x2() = 11` Two-component, 8-bit signed normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Snorm8x4() = 12` Four-component, 8-bit signed normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint16() = 13` Single-component, 16-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint16x2() = 14` Two-component, 16-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint16x4() = 15` Four-component, 16-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint32() = 32` Single-component, 32-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint32x2() = 33` Two-component, 32-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint32x3() = 34` Three-component, 32-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint32x4() = 35` Four-component, 32-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint8() = 1` Single-component, 8-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint8x2() = 2` Two-component, 8-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Uint8x4() = 3` Four-component, 8-bit unsigned integer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm10_10_10_2() = 40` |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm16() = 19` Single-component, 16-bit unsigned normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm16x2() = 20` Two-component, 16-bit unsigned normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm16x4() = 21` Four-component, 16-bit unsigned normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm8() = 7` Single-component, 8-bit unsigned normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm8x2() = 8` Two-component, 8-bit unsigned normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm8x4() = 9` Four-component, 8-bit unsigned normalized. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#Unorm8x4BGRA() = 41` |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/VertexFormat#toString(kotlin.Int)(int value)` |

## Constants

### Float16

```
public static final int Float16 = 25
```

Single-component, 16-bit float.

### Float16x2

```
public static final int Float16x2 = 26
```

Two-component, 16-bit float.

### Float16x4

```
public static final int Float16x4 = 27
```

Four-component, 16-bit float.

### Float32

```
public static final int Float32 = 28
```

Single-component, 32-bit float.

### Float32x2

```
public static final int Float32x2 = 29
```

Two-component, 32-bit float.

### Float32x3

```
public static final int Float32x3 = 30
```

Three-component, 32-bit float.

### Float32x4

```
public static final int Float32x4 = 31
```

Four-component, 32-bit float.

### Sint16

```
public static final int Sint16 = 16
```

Single-component, 16-bit signed integer.

### Sint16x2

```
public static final int Sint16x2 = 17
```

Two-component, 16-bit signed integer.

### Sint16x4

```
public static final int Sint16x4 = 18
```

Four-component, 16-bit signed integer.

### Sint32

```
public static final int Sint32 = 36
```

Single-component, 32-bit signed integer.

### Sint32x2

```
public static final int Sint32x2 = 37
```

Two-component, 32-bit signed integer.

### Sint32x3

```
public static final int Sint32x3 = 38
```

Three-component, 32-bit signed integer.

### Sint32x4

```
public static final int Sint32x4 = 39
```

Four-component, 32-bit signed integer.

### Sint8

```
public static final int Sint8 = 4
```

Single-component, 8-bit signed integer.

### Sint8x2

```
public static final int Sint8x2 = 5
```

Two-component, 8-bit signed integer.

### Sint8x4

```
public static final int Sint8x4 = 6
```

Four-component, 8-bit signed integer.

### Snorm10_10_10_2

```
public static final int Snorm10_10_10_2 = 42
```

### Snorm16

```
public static final int Snorm16 = 22
```

Single-component, 16-bit signed normalized.

### Snorm16x2

```
public static final int Snorm16x2 = 23
```

Two-component, 16-bit signed normalized.

### Snorm16x4

```
public static final int Snorm16x4 = 24
```

Four-component, 16-bit signed normalized.

### Snorm8

```
public static final int Snorm8 = 10
```

Single-component, 8-bit signed normalized.

### Snorm8x2

```
public static final int Snorm8x2 = 11
```

Two-component, 8-bit signed normalized.

### Snorm8x4

```
public static final int Snorm8x4 = 12
```

Four-component, 8-bit signed normalized.

### Uint16

```
public static final int Uint16 = 13
```

Single-component, 16-bit unsigned integer.

### Uint16x2

```
public static final int Uint16x2 = 14
```

Two-component, 16-bit unsigned integer.

### Uint16x4

```
public static final int Uint16x4 = 15
```

Four-component, 16-bit unsigned integer.

### Uint32

```
public static final int Uint32 = 32
```

Single-component, 32-bit unsigned integer.

### Uint32x2

```
public static final int Uint32x2 = 33
```

Two-component, 32-bit unsigned integer.

### Uint32x3

```
public static final int Uint32x3 = 34
```

Three-component, 32-bit unsigned integer.

### Uint32x4

```
public static final int Uint32x4 = 35
```

Four-component, 32-bit unsigned integer.

### Uint8

```
public static final int Uint8 = 1
```

Single-component, 8-bit unsigned integer.

### Uint8x2

```
public static final int Uint8x2 = 2
```

Two-component, 8-bit unsigned integer.

### Uint8x4

```
public static final int Uint8x4 = 3
```

Four-component, 8-bit unsigned integer.

### Unorm10_10_10_2

```
public static final int Unorm10_10_10_2 = 40
```

### Unorm16

```
public static final int Unorm16 = 19
```

Single-component, 16-bit unsigned normalized.

### Unorm16x2

```
public static final int Unorm16x2 = 20
```

Two-component, 16-bit unsigned normalized.

### Unorm16x4

```
public static final int Unorm16x4 = 21
```

Four-component, 16-bit unsigned normalized.

### Unorm8

```
public static final int Unorm8 = 7
```

Single-component, 8-bit unsigned normalized.

### Unorm8x2

```
public static final int Unorm8x2 = 8
```

Two-component, 8-bit unsigned normalized.

### Unorm8x4

```
public static final int Unorm8x4 = 9
```

Four-component, 8-bit unsigned normalized.

### Unorm8x4BGRA

```
public static final int Unorm8x4BGRA = 41
```

## Public methods

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final @NonNull String toString(int value)
```