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

> 描述给定格式和采样计数的多重采样图像质量级别。

描述给定格式和采样计数的多重采样图像质量级别。

## 语法

```cpp theme={null}
typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS
{
    DXGI_FORMAT Format;
    UINT SampleCount;
    D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG Flags;
    UINT NumQualityLevels;
} D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS
```

### 成员

*Format*\
类型:DXGI\_FORMAT

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

*SampleCount*\
类型:UINT

要返回信息的每像素多重采样数。

*Flags*\
类型:D3D12\_MULTISAMPLE\_QUALITY\_LEVELS\_FLAG

控制质量级别的标志,是 [D3D12\_MULTISAMPLE\_QUALITY\_LEVEL\_FLAGS](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_multisample_quality_level_flags) 枚举常量的按位或组合。
结果值指定用于确定质量级别的选项。

*NumQualityLevels*\
类型:UINT

质量级别的数量。

## 备注

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

## 要求

**头文件:** 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_STANDARD_MULTISAMPLE_QUALITY_LEVELS](/zh-CN/reference/graphics/d3d12_xs/enums/d3d12_standard_multisample_quality_levels.md)
- [D3D12_FEATURE_DATA_FEATURE_LEVELS](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_feature_levels_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS5](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options5_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options_public.md)
