# GPUDepthStencilState.Builder

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

*** ** * ** ***


```
class GPUDepthStencilState.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setDepthBias(kotlin.Int)(depthBias: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setDepthBiasClamp(kotlin.Float)(depthBiasClamp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setDepthBiasSlopeScale(kotlin.Float)(depthBiasSlopeScale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setDepthCompare(kotlin.Int)(depthCompare: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setDepthWriteEnabled(kotlin.Int)(depthWriteEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setFormat(kotlin.Int)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setStencilBack(androidx.webgpu.GPUStencilFaceState)(stencilBack: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStencilFaceState)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setStencilFront(androidx.webgpu.GPUStencilFaceState)(stencilFront: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStencilFaceState)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setStencilReadMask(kotlin.Int)(stencilReadMask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder#setStencilWriteMask(kotlin.Int)(stencilWriteMask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## 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(): GPUDepthStencilState
```

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

### setDepthBias

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

```
fun setDepthBias(depthBias: Int): GPUDepthStencilState.Builder
```

### setDepthBiasClamp

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

```
fun setDepthBiasClamp(depthBiasClamp: Float): GPUDepthStencilState.Builder
```

### setDepthBiasSlopeScale

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

```
fun setDepthBiasSlopeScale(depthBiasSlopeScale: Float): GPUDepthStencilState.Builder
```

### setDepthCompare

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

```
fun setDepthCompare(depthCompare: Int): GPUDepthStencilState.Builder
```

### setDepthWriteEnabled

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

```
fun setDepthWriteEnabled(depthWriteEnabled: Int): GPUDepthStencilState.Builder
```

### setFormat

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

```
fun setFormat(format: Int): GPUDepthStencilState.Builder
```

### setStencilBack

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

```
fun setStencilBack(stencilBack: GPUStencilFaceState): GPUDepthStencilState.Builder
```

### setStencilFront

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

```
fun setStencilFront(stencilFront: GPUStencilFaceState): GPUDepthStencilState.Builder
```

### setStencilReadMask

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

```
fun setStencilReadMask(stencilReadMask: Int): GPUDepthStencilState.Builder
```

### setStencilWriteMask

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

```
fun setStencilWriteMask(stencilWriteMask: Int): GPUDepthStencilState.Builder
```