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

> Describes the subresources from a 3D texture to use in a render-target view.

Describes the subresources from a 3D texture to use in a render-target view.

## Syntax

```cpp theme={null}
typedef struct D3D12_TEX3D_RTV
{
    UINT MipSlice;
    UINT FirstWSlice;
    UINT WSize;
} D3D12_TEX3D_RTV
```

### Members

*MipSlice*\
Type: UINT

The index of the mipmap level to use mip slice.

*FirstWSlice*\
Type: UINT

First depth level to use.

*WSize*\
Type: UINT

Number of depth levels to use in the render-target view, starting from **FirstWSlice**. A value of -1 indicates all of the slices along the w axis, starting from **FirstWSlice**.

## 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 3D 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_TEX3D_UAV](/reference/graphics/d3d12/structs/d3d12_tex3d_uav_public.md)
- [D3D12_TEX3D_SRV](/reference/graphics/d3d12/structs/d3d12_tex3d_srv_public.md)
- [D3D12_RTV_DIMENSION](/reference/graphics/d3d12/enums/d3d12_rtv_dimension_public.md)
- [D3D12_BUFFER_RTV](/reference/graphics/d3d12/structs/d3d12_buffer_rtv_public.md)
