# GPURenderPassDepthStencilAttachment.Builder

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

*** ** * ** ***


```
class GPURenderPassDepthStencilAttachment.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthClearValue(kotlin.Float)(depthClearValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthLoadOp(kotlin.Int)(depthLoadOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthReadOnly(kotlin.Boolean)(depthReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthStoreOp(kotlin.Int)(depthStoreOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilClearValue(kotlin.Int)(stencilClearValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilLoadOp(kotlin.Int)(stencilLoadOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilReadOnly(kotlin.Boolean)(stencilReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilStoreOp(kotlin.Int)(stencilStoreOp: 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(view: GPUTextureView)
```

## Public functions

### build

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

```
fun build(): GPURenderPassDepthStencilAttachment
```

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

### setDepthClearValue

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

```
fun setDepthClearValue(depthClearValue: Float): GPURenderPassDepthStencilAttachment.Builder
```

### setDepthLoadOp

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

```
fun setDepthLoadOp(depthLoadOp: Int): GPURenderPassDepthStencilAttachment.Builder
```

### setDepthReadOnly

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

```
fun setDepthReadOnly(depthReadOnly: Boolean): GPURenderPassDepthStencilAttachment.Builder
```

### setDepthStoreOp

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

```
fun setDepthStoreOp(depthStoreOp: Int): GPURenderPassDepthStencilAttachment.Builder
```

### setStencilClearValue

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

```
fun setStencilClearValue(stencilClearValue: Int): GPURenderPassDepthStencilAttachment.Builder
```

### setStencilLoadOp

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

```
fun setStencilLoadOp(stencilLoadOp: Int): GPURenderPassDepthStencilAttachment.Builder
```

### setStencilReadOnly

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

```
fun setStencilReadOnly(stencilReadOnly: Boolean): GPURenderPassDepthStencilAttachment.Builder
```

### setStencilStoreOp

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

```
fun setStencilStoreOp(stencilStoreOp: Int): GPURenderPassDepthStencilAttachment.Builder
```