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

# GetPurposes

> ILampInfo::GetPurposes

# ILampInfo::GetPurposes

返回 Lamp 预期用于的用途集合。

## 语法

```cpp theme={null}
LampPurposes GetPurposes(
)
```

### 参数

此方法没有参数。

### 返回值

类型：[LampPurposes](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/enums/lamppurposes.md)

一组标志，指示 Lamp 预期用于的用途。

## 要求

**头文件：** LampArray.h

**库：** xgameplatform.lib

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

## 另请参阅

[光照 API 概览](https://docs.xbox.com/zh-CN/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampInfo](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [LampPurposes 枚举](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/enums/lamppurposes.md)
- [ILampInfo（接口内容）](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [GetIndicesForPurposes](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)
- [GetIndicesCountForPurposes](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicescountforpurposes.md)
- [ILampArray（接口内容）](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
