# 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)

*** ** * ** ***


```
public final class GPURenderPassColorAttachment
```

<br />

*** ** * ** ***

Describes a color attachment for a render pass.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#GPURenderPassColorAttachment(androidx.webgpu.GPUColor,androidx.webgpu.GPUTextureView,kotlin.Int,androidx.webgpu.GPUTextureView,kotlin.Int,kotlin.Int)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUColor clearValue, https://developer.android.com/reference/androidx/webgpu/GPUTextureView view, int depthSlice, https://developer.android.com/reference/androidx/webgpu/GPUTextureView resolveTarget, int loadOp, int storeOp )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUColor` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#getClearValue()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#getDepthSlice()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#getLoadOp()()` |
| `final https://developer.android.com/reference/androidx/webgpu/GPUTextureView` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#getResolveTarget()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#getStoreOp()()` |
| `final https://developer.android.com/reference/androidx/webgpu/GPUTextureView` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#getView()()` The texture view for the color attachment. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#setClearValue(androidx.webgpu.GPUColor)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUColor value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#setDepthSlice(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#setLoadOp(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#setResolveTarget(androidx.webgpu.GPUTextureView)(https://developer.android.com/reference/androidx/webgpu/GPUTextureView value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#setStoreOp(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassColorAttachment#setView(androidx.webgpu.GPUTextureView)(https://developer.android.com/reference/androidx/webgpu/GPUTextureView value)` 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)

```
public GPURenderPassColorAttachment(
    @NonNull GPUColor clearValue,
    GPUTextureView view,
    int depthSlice,
    GPUTextureView resolveTarget,
    int loadOp,
    int storeOp
)
```

## Public methods

### getClearValue

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

```
public final @NonNull GPUColor getClearValue()
```

### getDepthSlice

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

```
public final int getDepthSlice()
```

### getLoadOp

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

```
public final int getLoadOp()
```

### getResolveTarget

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

```
public final GPUTextureView getResolveTarget()
```

### getStoreOp

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

```
public final int getStoreOp()
```

### getView

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

```
public final GPUTextureView getView()
```

The texture view for the color attachment.

### setClearValue

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

```
public final void setClearValue(@NonNull GPUColor value)
```

### setDepthSlice

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

```
public final void setDepthSlice(int value)
```

### setLoadOp

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

```
public final void setLoadOp(int value)
```

### setResolveTarget

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

```
public final void setResolveTarget(GPUTextureView value)
```

### setStoreOp

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

```
public final void setStoreOp(int value)
```

### setView

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

```
public final void setView(GPUTextureView value)
```

The texture view for the color attachment.