# GPUBlendState.Builder

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

*** ** * ** ***


```
class GPUBlendState.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState.Builder#setAlpha(androidx.webgpu.GPUBlendComponent)(alpha: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState.Builder#setColor(androidx.webgpu.GPUBlendComponent)(color: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent)` |

## Public constructors

### Builder

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

```
Builder()
```

## Public functions

### build

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

```
fun build(): GPUBlendState
```

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

### setAlpha

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

```
fun setAlpha(alpha: GPUBlendComponent): GPUBlendState.Builder
```

### setColor

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

```
fun setColor(color: GPUBlendComponent): GPUBlendState.Builder
```