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

# SetGammaControl (XBOX Series 主機)

> 設定 Gamma 控制項。

設定 Gamma 控制項。

## 語法

```cpp theme={null}
HRESULT SetGammaControl(  
         const DXGI_GAMMA_CONTROL *pArray  
)  
```

### 參數

\**pArray*   \_In\_\
類型：DXGI\_GAMMA\_CONTROL

DXGI\_GAMMA\_CONTROL 結構的指標，描述要設定的 Gamma 曲線。

### 傳回值

類型：HRESULT

成功時傳回 S\_OK；以無效參數呼叫時傳回 E\_INVALIDARG。

## 備註

這是舊版 DXGI API，GDK 不支援此 API。

## 需求

**標頭：** d3d12\_xs.h

## 另請參閱

[IDXGIOutput](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/idxgioutput)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX Series X|S 總覽](/zh-TW/paths/series-xs/overview.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [XBOX 主機遊戲的認證測試 XBOX 需求](/zh-TW/publishing/certification/console-cert-tested-requirements.md)
- [Play Anywhere(主機 + PC)總覽](/zh-TW/paths/play-anywhere/overview.md)
