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

# D3D12_COMMAND_QUEUE_PRIORITY

> Defines priority levels for a command queue.

Defines priority levels for a command queue.

## Syntax

```cpp theme={null}
typedef enum D3D12_COMMAND_QUEUE_PRIORITY
{
    D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0,
    D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100,
    D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000
} D3D12_COMMAND_QUEUE_PRIORITY
```

## Constants

| Constant                                          | Description               |
| ------------------------------------------------- | ------------------------- |
| D3D12\_COMMAND\_QUEUE\_PRIORITY\_NORMAL           | Normal priority.          |
| D3D12\_COMMAND\_QUEUE\_PRIORITY\_HIGH             | High priority.            |
| D3D12\_COMMAND\_QUEUE\_PRIORITY\_GLOBAL\_REALTIME | Global realtime priority. |

## Remarks

This enumeration is used by the **Priority** member of the
[D3D12\_COMMAND\_QUEUE\_DESC](/reference/graphics/d3d12/structs/d3d12_command_queue_desc_public) structure.

An application must be sufficiently privileged in order to create a command queue that has global realtime priority. If the application is not sufficiently privileged or if neither the adapter or driver can provide the necessary preemption, then requests to create a global realtime priority queue fail; such a failure could be due to a lack of hardware support or due to conflicts with other command queue parameters. Requests to create a global realtime command queue won't silently downgrade the priority when it can't be supported; the request succeeds or fails as-is to indicate to the application whether or not the command queue is guaranteed to execute before any other queue.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)


## Related topics

- [D3D12_COMMAND_QUEUE_DESC](/reference/graphics/d3d12/structs/d3d12_command_queue_desc_public.md)
- [D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY](/reference/graphics/d3d12/structs/d3d12_feature_data_command_queue_priority_public.md)
- [D3D12_RESIDENCY_PRIORITY](/reference/graphics/d3d12/enums/d3d12_residency_priority_public.md)
- [ID3D12CommandQueue::GetDesc](/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_getdesc_public.md)
- [ID3D12CommandQueue::Signal](/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_signal_public.md)
