# GPUColorTargetState

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

*** ** * ** ***


```
public final class GPUColorTargetState
```

<br />

*** ** * ** ***

Describes the state of a single color target in a render pipeline.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#GPUColorTargetState(kotlin.Int,androidx.webgpu.GPUBlendState,kotlin.Int)(int format, https://developer.android.com/reference/androidx/webgpu/GPUBlendState blend, int writeMask)` |

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/androidx/webgpu/GPUBlendState` | `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#getBlend()()` The blending state for this target. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#getFormat()()` The texture format of the color target. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#getWriteMask()()` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#setBlend(androidx.webgpu.GPUBlendState)(https://developer.android.com/reference/androidx/webgpu/GPUBlendState value)` The blending state for this target. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#setFormat(kotlin.Int)(int value)` The texture format of the color target. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUColorTargetState#setWriteMask(kotlin.Int)(int value)` |

## Public constructors

### GPUColorTargetState

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

```
public GPUColorTargetState(int format, GPUBlendState blend, int writeMask)
```

## Public methods

### getBlend

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

```
public final GPUBlendState getBlend()
```

The blending state for this target.

### getFormat

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

```
public final int getFormat()
```

The texture format of the color target.

### getWriteMask

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

```
public final int getWriteMask()
```

### setBlend

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

```
public final void setBlend(GPUBlendState value)
```

The blending state for this target.

### setFormat

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

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

The texture format of the color target.

### setWriteMask

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

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