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

# XG_SAMPLE_DESC (XBOX One 系列)

> 描述資源的多重取樣參數。

描述資源的多重取樣參數。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XG_SAMPLE_DESC {  
    UINT Count;
    UINT Quality;
} XG_SAMPLE_DESC  
```

<a id="membersSection" />

### 成員

*Count*\
類型：UINT

每個像素的多重取樣數目。

*Quality*\
類型：UINT

影像品質等級。

<a id="remarksSection" />

## 備註

此結構描述 XBOX Graphics (XG) 程式庫中資源的多重取樣參數。它相當於 [DXGI](https://learn.microsoft.com/en-us/windows/win32/api/_direct3ddxgi/) 程式庫中的 [DXGI\_SAMPLE\_DESC](https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ns-dxgicommon-dxgi_sample_desc) 結構。

下列 XG 程式庫結構會使用 `XG_SAMPLE_DESC`：

* [XG\_RESOURCE\_DESC](/zh-TW/reference/graphics/xg__NR/structs/xg_resource_desc)
* [XG\_TEXTURE2D\_DESC](/zh-TW/reference/graphics/xg__NR/structs/xg_texture2d_desc)

如需 XG 程式庫的詳細資訊，請參閱 [XBOX One 的原生資源管理](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)。

<a id="requirementsSection" />

## 需求

**標頭：** xg.h

**程式庫：** xg\_x.lib

**支援的平台：** XBOX One 系列

<a id="seealsoSection" />

## 另請參閱

[XG 參考](/zh-TW/reference/graphics/xg__NR/xg_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [D3D12_SAMPLER_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_sampler_desc_public.md)
- [XBOX GDK 主機開發的 NDA 主題索引](/zh-TW/nda/nda-overview.md)
- [D3D12_STATIC_SAMPLER_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_static_sampler_desc_public.md)
- [SHAPE_XMA_SAMPLE_RATE](/zh-TW/reference/audio/shapexmacontext/enums/shape_xma_sample_rate.md)
