# IndexFormat

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

*** ** * ** ***


```
class IndexFormat
```

<br />

*** ** * ** ***

Specifies the data type of an index buffer.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/IndexFormat#Uint16() = 1` 16-bit unsigned integer indices. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/IndexFormat#Uint32() = 2` 32-bit unsigned integer indices. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/IndexFormat#Undefined() = 0` Indicates that no index format is specified. |

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

## Constants

### Uint16

```
const val Uint16 = 1: Int
```

16-bit unsigned integer indices.

### Uint32

```
const val Uint32 = 2: Int
```

32-bit unsigned integer indices.

### Undefined

```
const val Undefined = 0: Int
```

Indicates that no index format is specified.

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