# GPUComputePassDescriptor.Builder

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

*** ** * ** ***


```
public final class GPUComputePassDescriptor.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor` | `https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor.Builder#build()()` Builds the `https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor.Builder#setLabel(kotlin.String)(https://developer.android.com/reference/java/lang/String.html label)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUComputePassDescriptor.Builder#setTimestampWrites(androidx.webgpu.GPUPassTimestampWrites)(https://developer.android.com/reference/androidx/webgpu/GPUPassTimestampWrites timestampWrites)` |

## Public constructors

### Builder

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

```
public Builder()
```

## Public methods

### build

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

```
public final @NonNull GPUComputePassDescriptor build()
```

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

### setLabel

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

```
public final @NonNull GPUComputePassDescriptor.Builder setLabel(String label)
```

### setTimestampWrites

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

```
public final @NonNull GPUComputePassDescriptor.Builder setTimestampWrites(GPUPassTimestampWrites timestampWrites)
```