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

*** ** * ** ***


```
class VertexFormat
```

<br />

*** ** * ** ***

Specifies the data format of a vertex attribute.

## Summary

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

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/VertexFormat#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### Float16

```
const val Float16 = 25: Int
```

Single-component, 16-bit float.

### Float16x2

```
const val Float16x2 = 26: Int
```

Two-component, 16-bit float.

### Float16x4

```
const val Float16x4 = 27: Int
```

Four-component, 16-bit float.

### Float32

```
const val Float32 = 28: Int
```

Single-component, 32-bit float.

### Float32x2

```
const val Float32x2 = 29: Int
```

Two-component, 32-bit float.

### Float32x3

```
const val Float32x3 = 30: Int
```

Three-component, 32-bit float.

### Float32x4

```
const val Float32x4 = 31: Int
```

Four-component, 32-bit float.

### Sint16

```
const val Sint16 = 16: Int
```

Single-component, 16-bit signed integer.

### Sint16x2

```
const val Sint16x2 = 17: Int
```

Two-component, 16-bit signed integer.

### Sint16x4

```
const val Sint16x4 = 18: Int
```

Four-component, 16-bit signed integer.

### Sint32

```
const val Sint32 = 36: Int
```

Single-component, 32-bit signed integer.

### Sint32x2

```
const val Sint32x2 = 37: Int
```

Two-component, 32-bit signed integer.

### Sint32x3

```
const val Sint32x3 = 38: Int
```

Three-component, 32-bit signed integer.

### Sint32x4

```
const val Sint32x4 = 39: Int
```

Four-component, 32-bit signed integer.

### Sint8

```
const val Sint8 = 4: Int
```

Single-component, 8-bit signed integer.

### Sint8x2

```
const val Sint8x2 = 5: Int
```

Two-component, 8-bit signed integer.

### Sint8x4

```
const val Sint8x4 = 6: Int
```

Four-component, 8-bit signed integer.

### Snorm10_10_10_2

```
const val Snorm10_10_10_2 = 42: Int
```

### Snorm16

```
const val Snorm16 = 22: Int
```

Single-component, 16-bit signed normalized.

### Snorm16x2

```
const val Snorm16x2 = 23: Int
```

Two-component, 16-bit signed normalized.

### Snorm16x4

```
const val Snorm16x4 = 24: Int
```

Four-component, 16-bit signed normalized.

### Snorm8

```
const val Snorm8 = 10: Int
```

Single-component, 8-bit signed normalized.

### Snorm8x2

```
const val Snorm8x2 = 11: Int
```

Two-component, 8-bit signed normalized.

### Snorm8x4

```
const val Snorm8x4 = 12: Int
```

Four-component, 8-bit signed normalized.

### Uint16

```
const val Uint16 = 13: Int
```

Single-component, 16-bit unsigned integer.

### Uint16x2

```
const val Uint16x2 = 14: Int
```

Two-component, 16-bit unsigned integer.

### Uint16x4

```
const val Uint16x4 = 15: Int
```

Four-component, 16-bit unsigned integer.

### Uint32

```
const val Uint32 = 32: Int
```

Single-component, 32-bit unsigned integer.

### Uint32x2

```
const val Uint32x2 = 33: Int
```

Two-component, 32-bit unsigned integer.

### Uint32x3

```
const val Uint32x3 = 34: Int
```

Three-component, 32-bit unsigned integer.

### Uint32x4

```
const val Uint32x4 = 35: Int
```

Four-component, 32-bit unsigned integer.

### Uint8

```
const val Uint8 = 1: Int
```

Single-component, 8-bit unsigned integer.

### Uint8x2

```
const val Uint8x2 = 2: Int
```

Two-component, 8-bit unsigned integer.

### Uint8x4

```
const val Uint8x4 = 3: Int
```

Four-component, 8-bit unsigned integer.

### Unorm10_10_10_2

```
const val Unorm10_10_10_2 = 40: Int
```

### Unorm16

```
const val Unorm16 = 19: Int
```

Single-component, 16-bit unsigned normalized.

### Unorm16x2

```
const val Unorm16x2 = 20: Int
```

Two-component, 16-bit unsigned normalized.

### Unorm16x4

```
const val Unorm16x4 = 21: Int
```

Four-component, 16-bit unsigned normalized.

### Unorm8

```
const val Unorm8 = 7: Int
```

Single-component, 8-bit unsigned normalized.

### Unorm8x2

```
const val Unorm8x2 = 8: Int
```

Two-component, 8-bit unsigned normalized.

### Unorm8x4

```
const val Unorm8x4 = 9: Int
```

Four-component, 8-bit unsigned normalized.

### Unorm8x4BGRA

```
const val Unorm8x4BGRA = 41: Int
```

## Public companion functions

### toString

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

```
fun toString(value: Int): String
```