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

> ILampArray::GetIndicesCountForPurposes

# ILampArray::GetIndicesCountForPurposes

주어진 LampPurposes 집합을 지원하는 Lamp 인덱스의 수를 반환합니다.

## 구문

```cpp theme={null}
uint32_t GetIndicesCountForPurposes(
    LampPurposes lampPurposes)
```

### 매개변수

*lampPurposes*\
형식: [LampPurposes](/reference/lighting/lamparray/enums/lamppurposes)

쿼리할 원하는 목적 집합입니다.

### 반환값

형식: uint32\_t

LampPurposes에 표시된 모든 값을 지원하는 이 ILampArray의 Lamp 수입니다.

## 설명

[ILampArray::GetIndicesForPurposes](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes)를 사용하기 전에 이 메서드를 호출하여 해당 함수가 지원하는 최대 버퍼 크기를 결정하세요.

## 요구 사항

**헤더:** LampArray.h

**라이브러리:** xgameplatform.lib

**지원되는 플랫폼:** XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[Lighting API 개요](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetIndicesForPurposes](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes)\
[ILampArray](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [ILampArray::GetIndicesForPurposes](/ko/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)
- [LampPurposes 열거형](/ko/reference/lighting/lamparray/enums/lamppurposes.md)
- [ILampArray::GetLampCount](/ko/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
- [ILampArray](/ko/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [ILampArray::SetColorsForIndices](/ko/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
