# GpuRenderPassDepthStencilAttachment

`import { GpuRenderPassDepthStencilAttachment } from "destack:gpu/binding";`

Render-pass depth-stencil-attachment descriptor.

```ds title="GpuRenderPassDepthStencilAttachment"
export struct GpuRenderPassDepthStencilAttachment {
    view: GpuTextureViewHandle;
    depthLoadOp: GpuLoadOp;
    depthStoreOp: GpuStoreOp;
    clearDepth: float64;
    depthReadOnly: boolean;
    stencilLoadOp: GpuLoadOp;
    stencilStoreOp: GpuStoreOp;
    clearStencil: uint32;
    stencilReadOnly: boolean;
}
```

[language/library/src/gpu/binding/command.ds:106:125](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/command.ds#L106-L125)

## Members

### `view: GpuTextureViewHandle`

Depth-stencil texture-view handle.

### `depthLoadOp: GpuLoadOp`

Depth load operation when depth is writable.

### `depthStoreOp: GpuStoreOp`

Depth store operation when depth is writable.

### `clearDepth: float64`

Clear depth value when depth load uses `Clear`.

### `depthReadOnly: boolean`

Whether depth attachment is read-only.

### `stencilLoadOp: GpuLoadOp`

Stencil load operation when stencil is writable.

### `stencilStoreOp: GpuStoreOp`

Stencil store operation when stencil is writable.

### `clearStencil: uint32`

Clear stencil value when stencil load uses `Clear`.

### `stencilReadOnly: boolean`

Whether stencil attachment is read-only.
