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

# PIX_COLOR_INDEX

> PIX_COLOR_INDEX

# PIX\_COLOR\_INDEX

Especifica un conjunto de categorías de eventos únicas y deja que PIX elija los colores para representar cada categoría.

## Sintaxis

```cpp theme={null}
UINT PIX_COLOR_INDEX(  
         BYTE i  
)  
```

### Parámetros

*i*   \
Tipo: BYTE

El índice del color.

### Valor devuelto

Tipo: UINT

Devuelve un UINT que contiene el color que representa la categoría.

## Comentarios

Use las funciones PIX\_COLOR\* para especificar colores que se pasarán como metadatos a una API de eventos/marcadores de PIX. Use [PIX\_COLOR](/reference/tools/pix3/functions/pix_color) para especificar un color determinado para un evento. O bien, use `PIX_COLOR_INDEX` para especificar un conjunto de categorías de eventos únicas y dejar que PIX elija los colores para representar cada categoría. `PIX_COLOR_INDEX` permite usar ocho índices de color distintos. La función ajustará los valores de índice mediante *i* % 8 para elegir el índice que determinará el color apropiado.\
Las funciones PIX\_COLOR\* se pueden usar para determinar el parámetro de color de varias funciones para representar cómo se mostrarán en un gráfico de PIX. Esas funciones incluyen los métodos sobrecargados [PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent-overloads) y [PIXSetMarker](/reference/tools/pix3/functions/pixsetmarker-overloads).

## Requisitos

**Encabezado:** pix3.h

**Biblioteca:** pixevt.lib

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[PIX\_COLOR](/reference/tools/pix3/functions/pix_color)\
[PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent)\
[PIXSetMarker](/reference/tools/pix3/functions/pixsetmarker)\
[PIX3](/reference/tools/pix3/pix3_members)\
[PIX (tema de NDA)](/tools/tools-console/pix/pix)


## Related topics

- [PIX_COLOR](/es/reference/tools/pix3/functions/pix_color.md)
- [Función PIXSetMarker](/es/reference/tools/pix3/functions/pixsetmarker.md)
- [Función PIXBeginEvent](/es/reference/tools/pix3/functions/pixbeginevent.md)
- [Referencia de PIXSetMarker](/es/reference/tools/pix3/functions/pixsetmarker_2.md)
- [Referencia de la función PIXBeginEvent](/es/reference/tools/pix3/functions/pixbeginevent_2.md)
