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

# ILampArray::GetLampInfo

> ILampArray::GetLampInfo

# ILampArray::GetLampInfo

返回给定索引处 Lamp 的 ILampInfo。

## 语法

```cpp theme={null}
HRESULT GetLampInfo(
    uint32_t lampIndex,
    ILampInfo** lampInfo)
```

### 参数

*lampIndex*\
类型：uint32\_t

ILampArray 中要获取 ILampInfo 的目标索引。

*lampInfo*  \_COM\_Outptr\_\
类型：ILampInfo\*\*

对应于 lampIndex 的 ILampInfo。如果 lampIndex 大于或等于 [ILampArray::GetLampCount](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount)，此值将为 null。

### 返回值

类型：HRESULT

函数结果。

## 备注

[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo) 包含 ILampArray 中给定索引处 Lamp 的属性。

## 要求

**头文件：** LampArray.h

**库：** xgameplatform.lib

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

## 另请参阅

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


## Related topics

- [ILampInfo::GetIndex](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampArray](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [ILampArray::GetLampArrayKind](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlamparraykind.md)
- [ILampArray::GetLampCount](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
- [ILampArray::GetBoundingBox](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)
