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

# ILampInfo::GetGainLevelCount 方法

> 傳回 LampArray 上的 Lamp 可顯示且與色彩無關的強度層級數目，用來衡量 Lamp 的亮度解析度。

# ILampInfo::GetGainLevelCount

傳回此 Lamp 可設定且與色彩無關的強度數目。

## 語法

```cpp theme={null}
uint32_t GetGainLevelCount(
)
```

### 參數

此方法沒有參數。

### 傳回值

類型：uint32\_t

Lamp 可設定的強度值。

## 需求

**標頭：** LampArray.h

**程式庫：** xgameplatform.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[照明 API 概觀](/zh-TW/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetNearestSupportedColor 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetRedLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
- [ILampInfo::GetBlueLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [ILampInfo::GetGreenLevelCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [ILampInfo::GetIndex 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
