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

> 描述用于渲染目标视图的 3D 纹理中的子资源。

描述用于渲染目标视图的 3D 纹理中的子资源。

## 语法

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

### 成员

*MipSlice*\
类型：UINT

要使用的 mipmap 层级（mip 切片）的索引。

*FirstWSlice*\
类型：UINT

要使用的第一个深度层级。

*WSize*\
类型：UINT

从 **FirstWSlice** 开始，在渲染目标视图中要使用的深度层级数量。值为 -1 表示从 **FirstWSlice** 开始使用沿 w 轴的所有切片。

## 备注

将此结构与 [D3D12\_RENDER\_TARGET\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public) 结构一起使用，可将资源视为 3D 纹理。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机及 XBOX One 系列

## 另请参阅

[核心结构](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_RENDER_TARGET_VIEW_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_TEX3D_UAV](/zh-CN/reference/graphics/d3d12/structs/d3d12_tex3d_uav_public.md)
- [D3D12_TEX3D_SRV](/zh-CN/reference/graphics/d3d12/structs/d3d12_tex3d_srv_public.md)
- [D3D12_RTV_DIMENSION](/zh-CN/reference/graphics/d3d12/enums/d3d12_rtv_dimension_public.md)
- [D3D12_BUFFER_RTV](/zh-CN/reference/graphics/d3d12/structs/d3d12_buffer_rtv_public.md)
