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

# ILampInfo::GetIndex method

> Returns the numeric index of a Lamp within its parent LampArray, letting titles map an ILampInfo back to the index used by ILampArray methods.

# ILampInfo::GetIndex

Returns the index in the LampArray at which the given lamp resides.

## Syntax

```cpp theme={null}
uint32_t GetIndex(
)
```

### Parameters

This method has no parameters.

### Return value

Type: uint32\_t

The index in the LampArray for the Lamp.

## Remarks

Valid lamp indices are in the range of 0 to [ILampArray::GetLampCount](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount) - 1.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetLampInfo](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)
