# 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)

*** ** * ** ***


```
public final class GPURenderPassDepthStencilAttachment.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#build()()` Builds the `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthClearValue(kotlin.Float)(float depthClearValue)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthLoadOp(kotlin.Int)(int depthLoadOp)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthReadOnly(kotlin.Boolean)(boolean depthReadOnly)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setDepthStoreOp(kotlin.Int)(int depthStoreOp)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilClearValue(kotlin.Int)(int stencilClearValue)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilLoadOp(kotlin.Int)(int stencilLoadOp)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilReadOnly(kotlin.Boolean)(boolean stencilReadOnly)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder#setStencilStoreOp(kotlin.Int)(int stencilStoreOp)` |

## Public constructors

### Builder

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

```
public Builder(@NonNull GPUTextureView view)
```

## Public methods

### build

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

```
public final @NonNull GPURenderPassDepthStencilAttachment build()
```

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

### setDepthClearValue

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setDepthClearValue(float depthClearValue)
```

### setDepthLoadOp

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setDepthLoadOp(int depthLoadOp)
```

### setDepthReadOnly

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setDepthReadOnly(boolean depthReadOnly)
```

### setDepthStoreOp

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setDepthStoreOp(int depthStoreOp)
```

### setStencilClearValue

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setStencilClearValue(int stencilClearValue)
```

### setStencilLoadOp

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setStencilLoadOp(int stencilLoadOp)
```

### setStencilReadOnly

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setStencilReadOnly(boolean stencilReadOnly)
```

### setStencilStoreOp

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

```
public final @NonNull GPURenderPassDepthStencilAttachment.Builder setStencilStoreOp(int stencilStoreOp)
```