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

> 描述 DXGI 数据格式和平面计数。

描述 DXGI 数据格式和平面计数。

## 语法

```cpp theme={null}
typedef struct D3D12_FEATURE_DATA_FORMAT_INFO
{
    DXGI_FORMAT Format;
    UINT8 PlaneCount;
} D3D12_FEATURE_DATA_FORMAT_INFO
```

### 成员

*Format*\
类型:DXGI\_FORMAT

用于返回信息的格式的 [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/desktop/api/dxgiformat/ne-dxgiformat-dxgi_format) 类型的值。

*PlaneCount*\
类型:UINT8

要提供信息的平面数量。

## 备注

请参阅 [D3D12\_FEATURE](/reference/graphics/d3d12/enums/d3d12_feature_public)。

#### 示例

```cpp theme={null}
inline UINT8 D3D12GetFormatPlaneCount(
_In_ ID3D12Device* pDevice,
DXGI_FORMAT Format
)
{
D3D12_FEATURE_DATA_FORMAT_INFO formatInfo{ Format };
if (FAILED(pDevice->CheckFeatureSupport(D3D12_FEATURE_FORMAT_INFO, &formatInfo, sizeof(formatInfo))))
{
return 0;
}
return formatInfo.PlaneCount;
}

```

## 要求

**头文件:** 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)

[D3D12\_FEATURE](/reference/graphics/d3d12/enums/d3d12_feature_public)


## Related topics

- [D3D12_FEATURE](/zh-CN/reference/graphics/d3d12/enums/d3d12_feature_public.md)
- [D3D12_FEATURE_DATA_FORMAT_SUPPORT](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_format_support_public.md)
- [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_MULTISAMPLE_QUALITY_LEVELS](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_multisample_quality_levels_public.md)
