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

# XALLOC_ALLOCATOR_IDS

> XALLOC_ALLOCATOR_IDS

# XALLOC\_ALLOCATOR\_IDS

Define el intervalo del conjunto de identificadores para los distintos tipos de asignadores usados por las rutinas de asignación de memoria.

## Sintaxis

```cpp theme={null}
typedef enum _XALLOC_ALLOCATOR_IDS    
{  
    eXALLOCAllocatorId_GameMin = 0,  
    eXALLOCAllocatorId_GameMax = 127,  
    eXALLOCAllocatorId_PlatformReservedMin = 128,  
    eXALLOCAllocatorId_D3D = 128,  
    eXALLOCAllocatorId_Audio = 129,  
    eXALLOCAllocatorId_Video = 130,  
    eXALLOCAllocatorId_ApplicationClip = 131,  
    eXALLOCAllocatorId_SmartGlass = 132,  
    eXALLOCAllocatorId_Networking = 133,  
    eXALLOCAllocatorId_AppPlatform = 134,  
    eXALLOCAllocatorId_Input = 135,  
    eXALLOCAllocatorId_ShellAPI = 136,  
    eXALLOCAllocatorId_MultimediaControl = 137,  
    eXALLOCAllocatorId_COM = 138,  
    eXALLOCAllocatorId_CpuProfilers = 139,  
    eXALLOCAllocatorId_WinRT = 140,  
    eXALLOCAllocatorId_RPC = 141,  
    eXALLOCAllocatorId_PIX = 142,  
    eXALLOCAllocatorId_XMem = 143,  
    eXALLOCAllocatorId_PlatformReservedMax = 191,  
    eXALLOCAllocatorId_MiddlewareReservedMin = 192,  
    eXALLOCAllocatorId_MiddlewareReservedMax = 255  
} XALLOC_ALLOCATOR_IDS  
```

## Constantes

| Constante | Descripción |
| - | - |
| eXALLOCAllocatorId\_GameMin | Inicio del intervalo de identificadores de asignador disponibles para los títulos para la asignación. |
| eXALLOCAllocatorId\_GameMax | Fin del intervalo de identificadores de asignador disponibles para los títulos para la asignación. |
| eXALLOCAllocatorId\_PlatformReservedMin | Inicio del intervalo de identificadores de asignador usados por el sistema. |
| eXALLOCAllocatorId\_D3D | Identificador de asignador para Direct 3D. |
| eXALLOCAllocatorId\_Audio | Identificador de asignador para audio. |
| eXALLOCAllocatorId\_Video | Identificador de asignador para vídeo. |
| eXALLOCAllocatorId\_ApplicationClip | Identificador de asignador para clips de aplicación. |
| eXALLOCAllocatorId\_SmartGlass | Identificador de asignador para SmartGlass. |
| eXALLOCAllocatorId\_Networking | Identificador de asignador para redes. |
| eXALLOCAllocatorId\_AppPlatform | Identificador de asignador para la plataforma de aplicaciones. |
| eXALLOCAllocatorId\_Input | Identificador de asignador para la entrada. |
| eXALLOCAllocatorId\_ShellAPI | Identificador de asignador para la API del shell. |
| eXALLOCAllocatorId\_MultimediaControl | Identificador de asignador para el control multimedia. |
| eXALLOCAllocatorId\_COM | Identificador de asignador para COM. |
| eXALLOCAllocatorId\_CpuProfilers | Identificador de asignador para generadores de perfiles de CPU. |
| eXALLOCAllocatorId\_WinRT | Identificador de asignador para WinRT. |
| eXALLOCAllocatorId\_RPC | Identificador de asignador para RPC. |
| eXALLOCAllocatorId\_PIX | Identificador de asignador para PIX. |
| eXALLOCAllocatorId\_XMem | Identificador de asignador para XMem. |
| eXALLOCAllocatorId\_PlatformReservedMax | Fin del intervalo de identificadores de asignador usados por el sistema. |
| eXALLOCAllocatorId\_MiddlewareReservedMin | Inicio del intervalo de identificadores de asignador reservados para middleware. |
| eXALLOCAllocatorId\_MiddlewareReservedMax | Fin del intervalo de identificadores de asignador reservados para middleware. |

## Comentarios

Las constantes **XALLOC\_ALLOCATOR\_IDS** las usa el miembro *AllocatorId* de la unión [XALLOC\_ATTRIBUTES](https://docs.xbox.com/es/reference/system/xmem/structs/xalloc_attributes.md). Cada asignación está asociada a un identificador de asignador, que identifica el subsistema que solicita la asignación (o la liberación). Hay tres orígenes posibles de asignaciones: el título (juego), la plataforma (SO) y los componentes de middleware.

Los desarrolladores de títulos pueden usar libremente cualquiera de los valores del intervalo comprendido entre **eXALLOCAllocatorId\_GameMin** y **eXALLOCAllocatorId\_GameMax** para identificar cuáles de sus subsistemas realizan asignaciones.

Si es un proveedor de middleware y desea reservar un identificador de asignador, póngase en contacto con su administrador de cuentas de desarrollador.

## Requisitos

**Encabezado:** xmem.h

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

## Consulte también

[Referencia de XMem](https://docs.xbox.com/es/reference/system/xmem/xmem_members.md)\
[XALLOC\_ATTRIBUTES](https://docs.xbox.com/es/reference/system/xmem/structs/xalloc_attributes.md)\
[XMEMALLOC\_ROUTINE](https://docs.xbox.com/es/reference/system/xmem/functions/xmemalloc_routine.md)\
[XMEMFREE\_ROUTINE](https://docs.xbox.com/es/reference/system/xmem/functions/xmemfree_routine.md)


## Related topics

- [CreateCommandAllocator](https://docs.xbox.com/es/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createcommandallocator_public.md)
- [XDspConnect](https://docs.xbox.com/es/reference/audio/xdspaudio/functions/xdspconnect.md)
- [XDspConnectWithMaximumStreamLimit](https://docs.xbox.com/es/reference/audio/xdspaudio/functions/xdspconnectwithmaximumstreamlimit.md)
- [ID3D12CommandAllocator::Reset](https://docs.xbox.com/es/reference/graphics/d3d12/interfaces/id3d12commandallocator/methods/id3d12commandallocator_reset_public.md)
- [XMemPreallocateFreeSpace](https://docs.xbox.com/es/reference/system/xmem/functions/xmempreallocatefreespace.md)
