# GPUBlendComponent

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

*** ** * ** ***


```
class GPUBlendComponent
```

<br />

*** ** * ** ***

Defines the blending behavior for a single color component (color or alpha).

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent#GPUBlendComponent(kotlin.Int,kotlin.Int,kotlin.Int)(operation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, srcFactor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dstFactor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent#dstFactor()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent#operation()` The blend operation to perform. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent#srcFactor()` |

## Public constructors

### GPUBlendComponent

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

```
GPUBlendComponent(
    operation: Int = BlendOperation.Add,
    srcFactor: Int = BlendFactor.One,
    dstFactor: Int = BlendFactor.Zero
)
```

## Public properties

### dstFactor

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

```
var dstFactor: Int
```

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`
- `7`
- `8`
- `9`
- `10`
- `11`
- `12`
- `13`
- `14`
- `15`
- `16`
- `17`

<br />

### operation

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

```
var operation: Int
```

The blend operation to perform. Defaults to @see `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#Add()` if `undefined`.

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`

<br />

### srcFactor

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

```
var srcFactor: Int
```

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`
- `7`
- `8`
- `9`
- `10`
- `11`
- `12`
- `13`
- `14`
- `15`
- `16`
- `17`

<br />