# GPURenderPassDepthStencilAttachment

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) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
class GPURenderPassDepthStencilAttachment
```

<br />

*** ** * ** ***

Describes a depth-stencil attachment for a render pass.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#GPURenderPassDepthStencilAttachment(androidx.webgpu.GPUTextureView,kotlin.Int,kotlin.Int,kotlin.Float,kotlin.Boolean,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Boolean)( view: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView, depthLoadOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, depthStoreOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, depthClearValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, depthReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, stencilLoadOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, stencilStoreOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, stencilClearValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, stencilReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#depthClearValue()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#depthLoadOp()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#depthReadOnly()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#depthStoreOp()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#stencilClearValue()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#stencilLoadOp()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#stencilReadOnly()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#stencilStoreOp()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment#view()` The texture view for the depth-stencil attachment. |

## Public constructors

### GPURenderPassDepthStencilAttachment

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

```
GPURenderPassDepthStencilAttachment(
    view: GPUTextureView,
    depthLoadOp: Int = LoadOp.Undefined,
    depthStoreOp: Int = StoreOp.Undefined,
    depthClearValue: Float = Constants.DEPTH_CLEAR_VALUE_UNDEFINED,
    depthReadOnly: Boolean = false,
    stencilLoadOp: Int = LoadOp.Undefined,
    stencilStoreOp: Int = StoreOp.Undefined,
    stencilClearValue: Int = 0,
    stencilReadOnly: Boolean = false
)
```

## Public properties

### depthClearValue

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

```
var depthClearValue: Float
```

### depthLoadOp

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

```
var depthLoadOp: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### depthReadOnly

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

```
var depthReadOnly: Boolean
```

### depthStoreOp

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

```
var depthStoreOp: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### stencilClearValue

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

```
var stencilClearValue: Int
```

### stencilLoadOp

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

```
var stencilLoadOp: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### stencilReadOnly

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

```
var stencilReadOnly: Boolean
```

### stencilStoreOp

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

```
var stencilStoreOp: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### view

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

```
var view: GPUTextureView
```

The texture view for the depth-stencil attachment.