> ## 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) 列舉常數的位元 OR 組合。
產生的值會指定用於判斷品質層級的選項。

*NumQualityLevels*\
類型：UINT

品質層級的數目。

## 備註

請參閱 [D3D12\_FEATURE](/zh-TW/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](/zh-TW/reference/graphics/d3d12/enums/d3d12_feature_public)


## Related topics

- [D3D12_FEATURE](/zh-TW/reference/graphics/d3d12/enums/d3d12_feature_public.md)
- [D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12_standard_multisample_quality_levels.md)
- [D3D12_FEATURE_DATA_FEATURE_LEVELS](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_feature_levels_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS5](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options5_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options_public.md)
