> ## 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_DCC_COMPRESSION_LEVEL (XBOX One 系列)

> XG_DCC_COMPRESSION_LEVEL (XBOX Series 主機) — 設定差異色彩壓縮 (DCC) 的最大單位大小。適用於 XBOX 的 Direct3D 12 圖形參考。

設定差異色彩壓縮 (DCC) 的最大單位大小。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef enum XG_DCC_COMPRESSION_LEVEL
{
    XG_DCC_COMPRESSION_LEVEL_64B_TEXTURE_COMPATIBLE = 0,
    XG_DCC_COMPRESSION_LEVEL_128B = 1,
    XG_DCC_COMPRESSION_LEVEL_256B = 2
} XG_DCC_COMPRESSION_LEVEL  
```

<a id="constantsSection" />

## 常數

| 常數 | 描述 |
| - | - |
| XG\_DCC\_COMPRESSION\_LEVEL\_64B\_TEXTURE\_COMPATIBLE | 將 DCC 最大單位大小設定為 256 位元組中的 64 位元組。換句話說，壓縮可以跨越一個區段。<br />為了與紋理快取相容，這是唯一支援的值。 |
| XG\_DCC\_COMPRESSION\_LEVEL\_128B | 將 DCC 最大單位大小設定為 256 位元組中的 128 位元組。換句話說，壓縮可以跨越兩個區段。 |
| XG\_DCC\_COMPRESSION\_LEVEL\_256B | 將 DCC 最大單位大小設定為 256 位元組中的 256 位元組。換句話說，壓縮可以跨越全部四個區段。 |

<a id="remarksSection" />

## 備註

[XG\_DCC\_OPTIONS](/zh-TW/reference/graphics/xg__NR/structs/xg_dcc_options) 結構會使用此列舉來表示差異色彩壓縮 (DCC) 的最大單位大小。[XGEncodeDCC](/zh-TW/reference/graphics/xg__NR/functions/xgencodedcc) 和 [XGDecodeDCC](/zh-TW/reference/graphics/xg__NR/functions/xgdecodedcc) 函式會使用 `XG_DCC_OPTIONS` 結構，分別對經差異色彩壓縮的表面進行編碼和解碼。如需詳細資訊，請參閱 [XBOX One 的原生資源管理](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)。

<a id="requirementsSection" />

## 需求

**標頭:** xg.h

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

<a id="seealsoSection" />

## 另請參閱

[XG\_DCC\_COLOR\_TRANSFORM](/zh-TW/reference/graphics/xg__NR/enums/xg_dcc_color_transform)\
[XG 參考](/zh-TW/reference/graphics/xg__NR/xg_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [HCCompressionLevel](/zh-TW/reference/live/httpclient/httpclient/enums/hccompressionlevel.md)
- [XBOX GDK 主機開發的 NDA 主題索引](/zh-TW/nda/nda-overview.md)
- [XNetworkingConnectivityLevelHint](/zh-TW/reference/networking/xnetworking/enums/xnetworkingconnectivitylevelhint.md)
- [GetShapeEqCompInputLevel](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompinputlevel.md)
