> ## 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::GetGreenLevelCount method

> Returns the number of distinct green channel intensity levels a Lamp on a LampArray can display, useful for picking colors the hardware can render.

# ILampInfo::GetGreenLevelCount

Returns the number of green intensities settable for the Lamp.

## Syntax

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

### Parameters

This method has no parameters.

### Return value

Type: uint32\_t

The number of distinct green levels.

## Remarks

If the Lamp has a fixed color (see [ILampInfo::GetFixedColor](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor)), this will return 0.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

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

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetNearestSupportedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetGainLevelCount method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgainlevelcount.md)
- [ILampInfo::GetBlueLevelCount method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [ILampInfo::GetRedLevelCount method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
- [ILampInfo::GetIndex method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
