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

> Identifies the type of resource to view as a render target.

Identifies the type of resource to view as a render target.

## Syntax

```cpp theme={null}
typedef enum D3D12_RTV_DIMENSION
{
    D3D12_RTV_DIMENSION_UNKNOWN = 0,
    D3D12_RTV_DIMENSION_BUFFER = 1,
    D3D12_RTV_DIMENSION_TEXTURE1D = 2,
    D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3,
    D3D12_RTV_DIMENSION_TEXTURE2D = 4,
    D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5,
    D3D12_RTV_DIMENSION_TEXTURE2DMS = 6,
    D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7,
    D3D12_RTV_DIMENSION_TEXTURE3D = 8
} D3D12_RTV_DIMENSION
```

## Constants

| Constant                                | Description                                                                                                                                                                                   |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| D3D12\_RTV\_DIMENSION\_UNKNOWN          | Do not use this value, as it will cause [ID3D12Device::CreateRenderTargetView](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createrendertargetview_public) to fail. |
| D3D12\_RTV\_DIMENSION\_BUFFER           | The resource will be accessed as a buffer.                                                                                                                                                    |
| D3D12\_RTV\_DIMENSION\_TEXTURE1D        | The resource will be accessed as a 1D texture.                                                                                                                                                |
| D3D12\_RTV\_DIMENSION\_TEXTURE1DARRAY   | The resource will be accessed as an array of 1D textures.                                                                                                                                     |
| D3D12\_RTV\_DIMENSION\_TEXTURE2D        | The resource will be accessed as a 2D texture.                                                                                                                                                |
| D3D12\_RTV\_DIMENSION\_TEXTURE2DARRAY   | The resource will be accessed as an array of 2D textures.                                                                                                                                     |
| D3D12\_RTV\_DIMENSION\_TEXTURE2DMS      | The resource will be accessed as a 2D texture with multisampling.                                                                                                                             |
| D3D12\_RTV\_DIMENSION\_TEXTURE2DMSARRAY | The resource will be accessed as an array of 2D textures with multisampling.                                                                                                                  |
| D3D12\_RTV\_DIMENSION\_TEXTURE3D        | The resource will be accessed as a 3D texture.                                                                                                                                                |

## Remarks

Specify one of the values in this enumeration in the **ViewDimension** member of a [D3D12\_RENDER\_TARGET\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public) 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_RENDER_TARGET_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_DSV_DIMENSION](/reference/graphics/d3d12/enums/d3d12_dsv_dimension_public.md)
- [D3D12_UAV_DIMENSION](/reference/graphics/d3d12/enums/d3d12_uav_dimension_public.md)
- [D3D12_BUFFER_RTV](/reference/graphics/d3d12/structs/d3d12_buffer_rtv_public.md)
- [D3D12_TEX2D_RTV](/reference/graphics/d3d12/structs/d3d12_tex2d_rtv_public.md)
