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

# D3D12_DSV_DIMENSION

> Specifies how to access a resource used in a depth-stencil view. (D3D12_DSV_DIMENSION)

Specifies how to access a resource used in a depth-stencil view.

## Syntax

```cpp theme={null}
typedef enum D3D12_DSV_DIMENSION
{
    D3D12_DSV_DIMENSION_UNKNOWN = 0,
    D3D12_DSV_DIMENSION_TEXTURE1D = 1,
    D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2,
    D3D12_DSV_DIMENSION_TEXTURE2D = 3,
    D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4,
    D3D12_DSV_DIMENSION_TEXTURE2DMS = 5,
    D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6
} D3D12_DSV_DIMENSION
```

## Constants

| Constant | Description |
| - | - |
| D3D12\_DSV\_DIMENSION\_UNKNOWN | **D3D12\_DSV\_DIMENSION\_UNKNOWN** is not a valid value for [D3D12\_DEPTH\_STENCIL\_VIEW\_DESC](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md) and is not used. |
| D3D12\_DSV\_DIMENSION\_TEXTURE1D | The resource will be accessed as a 1D texture. |
| D3D12\_DSV\_DIMENSION\_TEXTURE1DARRAY | The resource will be accessed as an array of 1D textures. |
| D3D12\_DSV\_DIMENSION\_TEXTURE2D | The resource will be accessed as a 2D texture. |
| D3D12\_DSV\_DIMENSION\_TEXTURE2DARRAY | The resource will be accessed as an array of 2D textures. |
| D3D12\_DSV\_DIMENSION\_TEXTURE2DMS | The resource will be accessed as a 2D texture with multi sampling. |
| D3D12\_DSV\_DIMENSION\_TEXTURE2DMSARRAY | The resource will be accessed as an array of 2D textures with multi sampling. |

## Remarks

Specify one of the values in this enumeration in the **ViewDimension** member of a [D3D12\_DEPTH\_STENCIL\_VIEW\_DESC](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md) structure.

## 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](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md)
- [D3D12_DSV_FLAGS](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_dsv_flags_public.md)
- [D3D12_RTV_DIMENSION](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_rtv_dimension_public.md)
- [D3D12_UAV_DIMENSION](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_uav_dimension_public.md)
- [D3D12_TEX2DMS_DSV](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_tex2dms_dsv_public.md)
