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

# GetIndicesCountForPurposes

> ILampArray::GetIndicesCountForPurposes

# ILampArray::GetIndicesCountForPurposes

指定された LampPurposes のセットをサポートする Lamp インデックスの数を返します。

## 構文

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

### パラメーター

*lampPurposes*\
Type: [LampPurposes](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/enums/lamppurposes.md)

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

### 戻り値

Type: uint32\_t

LampPurposes で指定されたすべての値をサポートする、この ILampArray 上の Lamp の数です。

## 解説

[ILampArray::GetIndicesForPurposes](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md) を使用する前にこのメソッドを呼び出して、その関数がサポートする最大のバッファー サイズを決定します。

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray::GetIndicesForPurposes](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)\
[ILampArray](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [GetIndicesForPurposes](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)
- [LampPurposes 列挙型](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/enums/lamppurposes.md)
- [ILampArray (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [SetColorsForIndices](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
- [GetPurposes](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
