> ## 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 Series 主機)

> XG_DCC_COMPRESSION_LEVEL (XBOX Series 主機) — 設定差異色彩壓縮 (DCC) 單位大小的上限。Direct3D (請參閱 xg_dcc_compression_level_xs)

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

## 語法

```cpp theme={null}
typedef enum XG_DCC_COMPRESSION_LEVEL    
{  
    XG_DCC_COMPRESSION_LEVEL_64B = 0,  
    XG_DCC_COMPRESSION_LEVEL_128B_TEXTURE_COMPATIBLE = 1,  
    XG_DCC_COMPRESSION_LEVEL_256B = 2  
} XG_DCC_COMPRESSION_LEVEL  
```

## 常數

| 常數 | 描述 |
| - | - |
| XG\_DCC\_COMPRESSION\_LEVEL\_64B | 將 DCC 單位大小上限設定為 256 個位元組中的 64 個。 |
| XG\_DCC\_COMPRESSION\_LEVEL\_128B\_TEXTURE\_COMPATIBLE | 將 DCC 單位大小上限設定為 256 個位元組中的 128 個；也就是說，壓縮可以跨越兩個區段。若要與紋理快取相容，這是唯一支援的值。 |
| XG\_DCC\_COMPRESSION\_LEVEL\_256B | 將 DCC 單位大小上限設定為 256 個位元組中的 256 個；也就是說，壓縮可以跨越全部四個區段。 |

## 需求

**標頭：** xg\_xs.h\
**支援的平台**：XBOX Series 主機

## 另請參閱

[xg\_xs](/zh-TW/reference/graphics/xg_xs/xg_xs_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [D3D_FEATURE_LEVEL (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12_xs/enums/d3d_feature_level.md)
- [XBOX GDK 主機開發的 NDA 主題索引](/zh-TW/nda/nda-overview.md)
- [HCCompressionLevel](/zh-TW/reference/live/httpclient/httpclient/enums/hccompressionlevel.md)
- [D3D12_BARRIER_SUBRESOURCE_RANGE (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_barrier_subresource_range_public.md)
