> ## 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*\
Type: [LampPurposes](/reference/lighting/lamparray/enums/lamppurposes)

問い合わせる用途の望ましいセットです。

### 戻り値

Type: 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](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)
- [LampPurposes 列挙型](/ja-jp/reference/lighting/lamparray/enums/lamppurposes.md)
- [ILampArray::GetLampCount](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
- [ILampArray](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [ILampArray::SetColorsForIndices](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
