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

> Describes the subresource from a 2D texture to use in a render-target view. (D3D12_TEX2D_RTV)

Describes the subresource from a 2D texture to use in a render-target view.

## Syntax

```cpp theme={null}
typedef struct D3D12_TEX2D_RTV
{
    UINT MipSlice;
    UINT PlaneSlice;
} D3D12_TEX2D_RTV
```

### Members

*MipSlice*\
Type: UINT

The index of the mipmap level to use.

*PlaneSlice*\
Type: UINT

The index (plane slice number) of the plane to use in the texture.

## Remarks

Use this structure with a [D3D12\_RENDER\_TARGET\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public) structure to view the resource as a 2D texture.

## 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 Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_RENDER_TARGET_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_TEX2D_ARRAY_RTV](/reference/graphics/d3d12/structs/d3d12_tex2d_array_rtv_public.md)
- [D3D12_TEX2DMS_RTV](/reference/graphics/d3d12/structs/d3d12_tex2dms_rtv_public.md)
- [D3D12_TEX2DMS_ARRAY_RTV](/reference/graphics/d3d12/structs/d3d12_tex2dms_array_rtv_public.md)
- [D3D12_TEX2D_UAV](/reference/graphics/d3d12/structs/d3d12_tex2d_uav_public.md)
