# GPUBlendState

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

*** ** * ** ***


```
class GPUBlendState
```

<br />

*** ** * ** ***

Defines the blending configuration for a color attachment.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState#GPUBlendState(androidx.webgpu.GPUBlendComponent,androidx.webgpu.GPUBlendComponent)(color: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent, alpha: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState#alpha()` The blend component for the alpha channel. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState#color()` The blend component for the RGB channels. |

## Public constructors

### GPUBlendState

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

```
GPUBlendState(
    color: GPUBlendComponent = GPUBlendComponent(),
    alpha: GPUBlendComponent = GPUBlendComponent()
)
```

## Public properties

### alpha

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

```
var alpha: GPUBlendComponent
```

The blend component for the alpha channel.

### color

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

```
var color: GPUBlendComponent
```

The blend component for the RGB channels.