# GPURenderPassColorAttachment.Builder

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

*** ** * ** ***


```
class GPURenderPassColorAttachment.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder#setDepthSlice(kotlin.Int)(depthSlice: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder#setLoadOp(kotlin.Int)(loadOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder#setResolveTarget(androidx.webgpu.GPUTextureView)(resolveTarget: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder#setStoreOp(kotlin.Int)(storeOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder#setView(androidx.webgpu.GPUTextureView)(view: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?)` |

## Public constructors

### Builder

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

```
Builder(clearValue: GPUColor)
```

## Public functions

### build

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

```
fun build(): GPURenderPassColorAttachment
```

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

### setDepthSlice

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

```
fun setDepthSlice(depthSlice: Int): GPURenderPassColorAttachment.Builder
```

### setLoadOp

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

```
fun setLoadOp(loadOp: Int): GPURenderPassColorAttachment.Builder
```

### setResolveTarget

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

```
fun setResolveTarget(resolveTarget: GPUTextureView?): GPURenderPassColorAttachment.Builder
```

### setStoreOp

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

```
fun setStoreOp(storeOp: Int): GPURenderPassColorAttachment.Builder
```

### setView

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

```
fun setView(view: GPUTextureView?): GPURenderPassColorAttachment.Builder
```