# BlendFactor

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

*** ** * ** ***


```
public final class BlendFactor
```

<br />

*** ** * ** ***

Defines the factors used in blend operations.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Constant() = 12` The blend factor is the blend constant `(Rc, Gc, Bc, Ac)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Dst() = 7` The blend factor is `(Rd, Gd, Bd, Ad)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#DstAlpha() = 9` The blend factor is `(Ad, Ad, Ad, Ad)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#One() = 2` The blend factor is `(1, 1, 1, 1)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusConstant() = 13` The blend factor is `(1-Rc, 1-Gc, 1-Bc, 1-Ac)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusDst() = 8` The blend factor is `(1-Rd, 1-Gd, 1-Bd, 1-Ad)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusDstAlpha() = 10` The blend factor is `(1-Ad, 1-Ad, 1-Ad, 1-Ad)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusSrc() = 4` The blend factor is `(1-Rs, 1-Gs, 1-Bs, 1-As)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusSrc1() = 15` The blend factor is `(1-Rs1, 1-Gs1, 1-Bs1, 1-As1)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusSrc1Alpha() = 17` The blend factor is `(1-As1, 1-As1, 1-As1, 1-As1)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#OneMinusSrcAlpha() = 6` The blend factor is `(1-As, 1-As, 1-As, 1-As)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Src() = 3` The blend factor is `(Rs, Gs, Bs, As)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Src1() = 14` The blend factor is the second source color `(Rs1, Gs1, Bs1, As1)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Src1Alpha() = 16` The blend factor is `(As1, As1, As1, As1)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#SrcAlpha() = 5` The blend factor is `(As, As, As, As)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#SrcAlphaSaturated() = 11` The blend factor is `(f, f, f, 1)` where `f = min(As, 1 - Ad)`. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Undefined() = 0` Indicates that no blend factor is specified. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#Zero() = 1` The blend factor is `(0, 0, 0, 0)`. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/BlendFactor#toString(kotlin.Int)(int value)` |

## Constants

### Constant

```
public static final int Constant = 12
```

The blend factor is the blend constant `(Rc, Gc, Bc, Ac)`.

### Dst

```
public static final int Dst = 7
```

The blend factor is `(Rd, Gd, Bd, Ad)`.

### DstAlpha

```
public static final int DstAlpha = 9
```

The blend factor is `(Ad, Ad, Ad, Ad)`.

### One

```
public static final int One = 2
```

The blend factor is `(1, 1, 1, 1)`.

### OneMinusConstant

```
public static final int OneMinusConstant = 13
```

The blend factor is `(1-Rc, 1-Gc, 1-Bc, 1-Ac)`.

### OneMinusDst

```
public static final int OneMinusDst = 8
```

The blend factor is `(1-Rd, 1-Gd, 1-Bd, 1-Ad)`.

### OneMinusDstAlpha

```
public static final int OneMinusDstAlpha = 10
```

The blend factor is `(1-Ad, 1-Ad, 1-Ad, 1-Ad)`.

### OneMinusSrc

```
public static final int OneMinusSrc = 4
```

The blend factor is `(1-Rs, 1-Gs, 1-Bs, 1-As)`.

### OneMinusSrc1

```
public static final int OneMinusSrc1 = 15
```

The blend factor is `(1-Rs1, 1-Gs1, 1-Bs1, 1-As1)`. Requires @see `https://developer.android.com/reference/androidx/webgpu/FeatureName#DualSourceBlending()`.

### OneMinusSrc1Alpha

```
public static final int OneMinusSrc1Alpha = 17
```

The blend factor is `(1-As1, 1-As1, 1-As1, 1-As1)`. Requires @see `https://developer.android.com/reference/androidx/webgpu/FeatureName#DualSourceBlending()`.

### OneMinusSrcAlpha

```
public static final int OneMinusSrcAlpha = 6
```

The blend factor is `(1-As, 1-As, 1-As, 1-As)`.

### Src

```
public static final int Src = 3
```

The blend factor is `(Rs, Gs, Bs, As)`.

### Src1

```
public static final int Src1 = 14
```

The blend factor is the second source color `(Rs1, Gs1, Bs1, As1)`. Requires

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/webgpu/FeatureName#DualSourceBlending()` | . |

### Src1Alpha

```
public static final int Src1Alpha = 16
```

The blend factor is `(As1, As1, As1, As1)`. Requires @see `https://developer.android.com/reference/androidx/webgpu/FeatureName#DualSourceBlending()`.

### SrcAlpha

```
public static final int SrcAlpha = 5
```

The blend factor is `(As, As, As, As)`.

### SrcAlphaSaturated

```
public static final int SrcAlphaSaturated = 11
```

The blend factor is `(f, f, f, 1)` where `f = min(As, 1 - Ad)`.

### Undefined

```
public static final int Undefined = 0
```

Indicates that no blend factor is specified.

### Zero

```
public static final int Zero = 1
```

The blend factor is `(0, 0, 0, 0)`.

## Public methods

### toString

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

```
public static final @NonNull String toString(int value)
```