# GPUBufferDescriptor.Builder

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

*** ** * ** ***


```
class GPUBufferDescriptor.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder#Builder(kotlin.Int,kotlin.Long)(usage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder#setLabel(kotlin.String)(label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder#setMappedAtCreation(kotlin.Boolean)(mappedAtCreation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` |

## Public constructors

### Builder

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

```
Builder(usage: Int, size: Long)
```

## Public functions

### build

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

```
fun build(): GPUBufferDescriptor
```

Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor`.

### setLabel

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

```
fun setLabel(label: String?): GPUBufferDescriptor.Builder
```

### setMappedAtCreation

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

```
fun setMappedAtCreation(mappedAtCreation: Boolean): GPUBufferDescriptor.Builder
```