> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetGainLevelCount

> Returns the number of color-independent intensity levels a Lamp on a LampArray can display, used to gauge brightness resolution for the Lamp.

Returns the number of color independent intensities settable for this Lamp.

## Syntax

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

### Parameters

This method has no parameters.

### Return value

Type: uint32\_t

The intensity value settable for the Lamp.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](https://docs.xbox.com/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampInfo](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [GetNearestSupportedColor](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo (Interface contents)](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [GetBlueLevelCount](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [GetGreenLevelCount](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [GetRedLevelCount](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
