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

# Méthode ILampArray::GetIndicesCountForPurposes

> Retourne le nombre d'index de Lamps d'un LampArray qui correspondent à un ensemble donné d'indicateurs LampPurposes, utilisé pour dimensionner les mémoires tampons de GetIndicesForPurposes.

# ILampArray::GetIndicesCountForPurposes

Retourne le nombre d'index de Lamps qui prennent en charge l'ensemble de LampPurposes donné.

## Syntaxe

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

### Paramètres

*lampPurposes*\
Type : [LampPurposes](/fr-CA/reference/lighting/lamparray/enums/lamppurposes)

L'ensemble d'usages souhaité à interroger.

### Valeur de retour

Type : uint32\_t

Le nombre de Lamps de cet ILampArray qui prennent en charge toutes les valeurs indiquées dans LampPurposes.

## Remarques

Appelez cette méthode avant d'utiliser [ILampArray::GetIndicesForPurposes](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes) afin de déterminer la taille maximale de mémoire tampon que cette fonction prendra en charge.

## Configuration requise

**En-tête :** LampArray.h

**Bibliothèque :** xgameplatform.lib

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](/fr-CA/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetIndicesForPurposes](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes)\
[ILampArray](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [Méthode ILampArray::GetIndicesForPurposes](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)
- [Méthode ILampArray::SetColorsForIndices](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
- [Méthode ILampArray::GetLampCount](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
- [Méthode ILampArray::GetLampInfo](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [Méthode ILampArray::GetLampArrayKind](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlamparraykind.md)
