> ## 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::GetRedLevelCount

> ILampInfo::GetRedLevelCount

# ILampInfo::GetRedLevelCount

返回可为 Lamp 设置的红色强度数量。

## 语法

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

### 参数

此方法没有参数。

### 返回值

类型：uint32\_t

不同红色级别的数量。

## 备注

如果 Lamp 具有固定颜色（请参阅 [ILampInfo::GetFixedColor](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor)），此方法将返回 0。

## 要求

**头文件：** LampArray.h

**库：** xgameplatform.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[光照 API 概览](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetNearestSupportedColor](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetBlueLevelCount](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [ILampInfo::GetGainLevelCount](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgainlevelcount.md)
- [ILampInfo::GetGreenLevelCount](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [ILampInfo](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
