# GPURenderPassDescriptor.Builder

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

*** ** * ** ***


```
class GPURenderPassDescriptor.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#setColorAttachments(kotlin.Array)( colorAttachments: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment> )` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#setDepthStencilAttachment(androidx.webgpu.GPURenderPassDepthStencilAttachment)( depthStencilAttachment: https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment? )` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#setLabel(kotlin.String)(label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#setOcclusionQuerySet(androidx.webgpu.GPUQuerySet)(occlusionQuerySet: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySet?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#setRenderPassMaxDrawCount(androidx.webgpu.GPURenderPassMaxDrawCount)( renderPassMaxDrawCount: https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassMaxDrawCount? )` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder#setTimestampWrites(androidx.webgpu.GPUPassTimestampWrites)(timestampWrites: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPassTimestampWrites?)` |

## Public constructors

### Builder

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

```
Builder()
```

## Public functions

### build

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

```
fun build(): GPURenderPassDescriptor
```

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

### setColorAttachments

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

```
fun setColorAttachments(
    colorAttachments: Array<GPURenderPassColorAttachment>
): GPURenderPassDescriptor.Builder
```

### setDepthStencilAttachment

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

```
fun setDepthStencilAttachment(
    depthStencilAttachment: GPURenderPassDepthStencilAttachment?
): GPURenderPassDescriptor.Builder
```

### setLabel

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

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

### setOcclusionQuerySet

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

```
fun setOcclusionQuerySet(occlusionQuerySet: GPUQuerySet?): GPURenderPassDescriptor.Builder
```

### setRenderPassMaxDrawCount

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

```
fun setRenderPassMaxDrawCount(
    renderPassMaxDrawCount: GPURenderPassMaxDrawCount?
): GPURenderPassDescriptor.Builder
```

### setTimestampWrites

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

```
fun setTimestampWrites(timestampWrites: GPUPassTimestampWrites?): GPURenderPassDescriptor.Builder
```