# BufferBindingType

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

*** ** * ** ***


```
class BufferBindingType
```

<br />

*** ** * ** ***

Specifies the type of a buffer binding in a bind group layout.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType#BindingNotUsed() = 0` Indicates that this binding is not used. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType#ReadOnlyStorage() = 4` A read-only storage buffer binding. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType#Storage() = 3` A read-write storage buffer binding. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType#Undefined() = 1` Indicates that no buffer binding type is specified. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType#Uniform() = 2` A uniform buffer binding. |

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

## Constants

### BindingNotUsed

```
const val BindingNotUsed = 0: Int
```

Indicates that this binding is not used.

### ReadOnlyStorage

```
const val ReadOnlyStorage = 4: Int
```

A read-only storage buffer binding.

### Storage

```
const val Storage = 3: Int
```

A read-write storage buffer binding.

### Undefined

```
const val Undefined = 1: Int
```

Indicates that no buffer binding type is specified.

### Uniform

```
const val Uniform = 2: Int
```

A uniform buffer binding.

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