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

> 建立差異色彩壓縮 (DCC) 組態選項。

建立差異色彩壓縮 (DCC) 組態選項。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XG_DCC_OPTIONS {
    XG_DCC_COMPRESSION_LEVEL CompressionLevel;
    XG_DCC_COLOR_TRANSFORM ColorTransform;
} XG_DCC_OPTIONS  
```

<a id="membersSection" />

### 成員

*CompressionLevel*\
類型：[XG\_DCC\_COMPRESSION\_LEVEL](/zh-TW/reference/graphics/xg__NR/enums/xg_dcc_compression_level)

DCC 的最大單位大小。

*ColorTransform*\
類型：[XG\_DCC\_COLOR\_TRANSFORM](/zh-TW/reference/graphics/xg__NR/enums/xg_dcc_color_transform)

要在 DCC 之前執行的色彩轉換。

<a id="remarksSection" />

## 備註

[XGEncodeDCC](/zh-TW/reference/graphics/xg__NR/functions/xgencodedcc) 和 [XGDecodeDCC](/zh-TW/reference/graphics/xg__NR/functions/xgdecodedcc) 函式會使用此結構，分別編碼和解碼差異色彩壓縮的表面。`XGEncodeDCC` 和 `XGDecodeDCC` 是適合在工具或離線壓縮中使用的軟體 DCC 編碼器實作。這不是適合或預定在執行階段使用的高效能實作。

<a id="requirementsSection" />

## 需求

**標頭：** xg.h

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

<a id="seealsoSection" />

## 另請參閱

[XBOX One 的原生資源管理](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)\
[XG 參考](/zh-TW/reference/graphics/xg__NR/xg_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX GDK 主機開發的 NDA 主題索引](/zh-TW/nda/nda-overview.md)
- [XMEM_OPTION](/zh-TW/reference/system/xmem/structs/xmem_option.md)
- [XMEM_OPTIONS](/zh-TW/reference/system/xmem/enums/xmem_options.md)
- [XErrorOptions](/zh-TW/reference/system/xerror/enums/xerroroptions.md)
