# GPURenderPassColorAttachment

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) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
class GPURenderPassColorAttachment
```

<br />

*** ** * ** ***

Describes a color attachment for a render pass.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#GPURenderPassColorAttachment(androidx.webgpu.GPUColor,androidx.webgpu.GPUTextureView,kotlin.Int,androidx.webgpu.GPUTextureView,kotlin.Int,kotlin.Int)( clearValue: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor, view: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?, depthSlice: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, resolveTarget: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?, loadOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, storeOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#clearValue()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#depthSlice()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#loadOp()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#resolveTarget()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#storeOp()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment#view()` The texture view for the color attachment. |

## Public constructors

### GPURenderPassColorAttachment

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

```
GPURenderPassColorAttachment(
    clearValue: GPUColor,
    view: GPUTextureView? = null,
    depthSlice: Int = Constants.DEPTH_SLICE_UNDEFINED,
    resolveTarget: GPUTextureView? = null,
    loadOp: Int = LoadOp.Undefined,
    storeOp: Int = StoreOp.Undefined
)
```

## Public properties

### clearValue

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

```
var clearValue: GPUColor
```

### depthSlice

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

```
var depthSlice: Int
```

### loadOp

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

```
var loadOp: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### resolveTarget

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

```
var resolveTarget: GPUTextureView?
```

### storeOp

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

```
var storeOp: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### view

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

```
var view: GPUTextureView?
```

The texture view for the color attachment.