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

*** ** * ** ***


```
public final class GPURenderPassDepthStencilAttachment
```

<br />

*** ** * ** ***

Describes a depth-stencil attachment for a render pass.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#GPURenderPassDepthStencilAttachment(androidx.webgpu.GPUTextureView,kotlin.Int,kotlin.Int,kotlin.Float,kotlin.Boolean,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Boolean)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUTextureView view, int depthLoadOp, int depthStoreOp, float depthClearValue, boolean depthReadOnly, int stencilLoadOp, int stencilStoreOp, int stencilClearValue, boolean stencilReadOnly )` |

| ### Public methods |
|---|---|
| `final float` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getDepthClearValue()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getDepthLoadOp()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getDepthStoreOp()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getStencilClearValue()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getStencilLoadOp()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getStencilStoreOp()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUTextureView` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#getView()()` The texture view for the depth-stencil attachment. |
| `final boolean` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#isDepthReadOnly()()` |
| `final boolean` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#isStencilReadOnly()()` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setDepthClearValue(kotlin.Float)(float value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setDepthLoadOp(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setDepthReadOnly(kotlin.Boolean)(boolean value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setDepthStoreOp(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setStencilClearValue(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setStencilLoadOp(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setStencilReadOnly(kotlin.Boolean)(boolean value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setStencilStoreOp(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPURenderPassDepthStencilAttachment#setView(androidx.webgpu.GPUTextureView)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUTextureView value)` 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)

```
public GPURenderPassDepthStencilAttachment(
    @NonNull GPUTextureView view,
    int depthLoadOp,
    int depthStoreOp,
    float depthClearValue,
    boolean depthReadOnly,
    int stencilLoadOp,
    int stencilStoreOp,
    int stencilClearValue,
    boolean stencilReadOnly
)
```

## Public methods

### getDepthClearValue

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

```
public final float getDepthClearValue()
```

### getDepthLoadOp

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

```
public final int getDepthLoadOp()
```

### getDepthStoreOp

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

```
public final int getDepthStoreOp()
```

### getStencilClearValue

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

```
public final int getStencilClearValue()
```

### getStencilLoadOp

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

```
public final int getStencilLoadOp()
```

### getStencilStoreOp

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

```
public final int getStencilStoreOp()
```

### getView

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

```
public final @NonNull GPUTextureView getView()
```

The texture view for the depth-stencil attachment.

### isDepthReadOnly

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

```
public final boolean isDepthReadOnly()
```

### isStencilReadOnly

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

```
public final boolean isStencilReadOnly()
```

### setDepthClearValue

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

```
public final void setDepthClearValue(float value)
```

### setDepthLoadOp

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

```
public final void setDepthLoadOp(int value)
```

### setDepthReadOnly

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

```
public final void setDepthReadOnly(boolean value)
```

### setDepthStoreOp

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

```
public final void setDepthStoreOp(int value)
```

### setStencilClearValue

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

```
public final void setStencilClearValue(int value)
```

### setStencilLoadOp

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

```
public final void setStencilLoadOp(int value)
```

### setStencilReadOnly

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

```
public final void setStencilReadOnly(boolean value)
```

### setStencilStoreOp

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

```
public final void setStencilStoreOp(int value)
```

### setView

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

```
public final void setView(@NonNull GPUTextureView value)
```

The texture view for the depth-stencil attachment.