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

*** ** * ** ***


```
public final class IndexFormat
```

<br />

*** ** * ** ***

Specifies the data type of an index buffer.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/IndexFormat#Uint16() = 1` 16-bit unsigned integer indices. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/IndexFormat#Uint32() = 2` 32-bit unsigned integer indices. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/IndexFormat#Undefined() = 0` Indicates that no index format is specified. |

| ### 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/IndexFormat#toString(kotlin.Int)(int value)` |

## Constants

### Uint16

```
public static final int Uint16 = 1
```

16-bit unsigned integer indices.

### Uint32

```
public static final int Uint32 = 2
```

32-bit unsigned integer indices.

### Undefined

```
public static final int Undefined = 0
```

Indicates that no index format is specified.

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