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

> 封装渲染目标格式的数组。

封装渲染目标格式的数组。

## 语法

```cpp theme={null}
typedef struct D3D12_RT_FORMAT_ARRAY
{
    DXGI_FORMAT RTFormats;
    UINT NumRenderTargets;
} D3D12_RT_FORMAT_ARRAY
```

### 成员

*RTFormats*\
类型：DXGI\_FORMAT\[8]

指定一个固定大小的 DXGI\_FORMAT 值数组，用于定义最多 8 个渲染目标的格式。

*NumRenderTargets*\
类型：UINT

指定数组中存储的渲染目标格式的数量。

## 备注

此结构主要用于在创建包含多个连续渲染目标格式描述的管道状态流描述时使用。

## 要求

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

## 另请参阅

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_FORMAT_SUPPORT1](/zh-CN/reference/graphics/d3d12/enums/d3d12_format_support1_public.md)
- [D3D12_FORMAT_SUPPORT2](/zh-CN/reference/graphics/d3d12/enums/d3d12_format_support2_public.md)
- [D3D12_FEATURE_DATA_FORMAT_SUPPORT](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_format_support_public.md)
- [D3D12_FEATURE_DATA_FORMAT_INFO](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_format_info_public.md)
- [D3D12_TEXCUBE_ARRAY_SRV](/zh-CN/reference/graphics/d3d12/structs/d3d12_texcube_array_srv_public.md)
