> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_DSV_FLAGS

> Specifies depth-stencil view options.

Specifies depth-stencil view options.

## Syntax

```cpp theme={null}
typedef enum D3D12_DSV_FLAGS
{
    D3D12_DSV_FLAG_NONE = 0,
    D3D12_DSV_FLAG_READ_ONLY_DEPTH = 1,
    D3D12_DSV_FLAG_READ_ONLY_STENCIL = 2
} D3D12_DSV_FLAGS
```

## Constants

| Constant                              | Description                                  |
| ------------------------------------- | -------------------------------------------- |
| D3D12\_DSV\_FLAG\_NONE                | Indicates a default view.                    |
| D3D12\_DSV\_FLAG\_READ\_ONLY\_DEPTH   | Indicates that depth values are read only.   |
| D3D12\_DSV\_FLAG\_READ\_ONLY\_STENCIL | Indicates that stencil values are read only. |

## Remarks

Specify a combination of the values in this enumeration in the **Flags** member of a [D3D12\_DEPTH\_STENCIL\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public) structure.
The values are combined by using a bitwise OR operation.

Limiting a depth-stencil buffer to read-only access allows more than one depth-stencil view to be bound to the pipeline simultaneously, since it is not possible to have read/write conflicts between separate views.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)


## Related topics

- [D3D12_DEPTH_STENCIL_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md)
- [D3D12_DSV_DIMENSION](/reference/graphics/d3d12/enums/d3d12_dsv_dimension_public.md)
- [D3D12_TEX2DMS_DSV](/reference/graphics/d3d12/structs/d3d12_tex2dms_dsv_public.md)
- [D3D12_TEX2D_DSV](/reference/graphics/d3d12/structs/d3d12_tex2d_dsv_public.md)
- [D3D12_TEX1D_DSV](/reference/graphics/d3d12/structs/d3d12_tex1d_dsv_public.md)
