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

# DSTORAGE_PRIORITY

> DSTORAGE_PRIORITY

# DSTORAGE\_PRIORITY

Niveaux de priorité d'une file d'attente DirectStorage.

## Syntaxe

```cpp theme={null}
enum DSTORAGE_PRIORITY  : INT8  
{  
    DSTORAGE_PRIORITY_LOW = -1,  
    DSTORAGE_PRIORITY_NORMAL = 0,  
    DSTORAGE_PRIORITY_HIGH = 1,  
    DSTORAGE_PRIORITY_REALTIME = 2,  
    DSTORAGE_PRIORITY_FIRST = DSTORAGE_PRIORITY_LOW,  
    DSTORAGE_PRIORITY_LAST = DSTORAGE_PRIORITY_REALTIME,  
    DSTORAGE_PRIORITY_COUNT = 4  
}  
```

## Constantes

| Constante | Description |
| - | - |
| DSTORAGE\_PRIORITY\_LOW | Priorité la plus basse pour une opération DirectStorage. |
| DSTORAGE\_PRIORITY\_NORMAL | La majorité des requêtes devraient avoir cette priorité. |
| DSTORAGE\_PRIORITY\_HIGH | Priorité la plus élevée pour une opération DirectStorage. |
| DSTORAGE\_PRIORITY\_REALTIME | Même priorité que `DSTORAGE_PRIORITY_HIGH`, mais réduit la latence au prix d'une charge processeur accrue. |
| DSTORAGE\_PRIORITY\_FIRST | Le niveau de priorité le plus bas; égal à `DSTORAGE_PRIORITY_LOW`. |
| DSTORAGE\_PRIORITY\_LAST | Le niveau de priorité le plus élevé; égal à `DSTORAGE_PRIORITY_REALTIME`. |
| DSTORAGE\_PRIORITY\_COUNT | Le nombre de niveaux de priorité. |

## Remarques

Cette énumération est utilisée dans la structure [DSTORAGE\_QUEUE\_DESC](/fr-CA/reference/system/dstorage/structs/dstorage_queue_desc).

La priorité est appliquée par un algorithme de tourniquet (round-robin) pondéré basé sur la taille des requêtes. La différence entre `DSTORAGE_PRIORITY_LOW` et `DSTORAGE_PRIORITY_NORMAL` est d'environ un ordre de grandeur, tout comme la différence entre `DSTORAGE_PRIORITY_NORMAL` et `DSTORAGE_PRIORITY_HIGH`.

Toutes les requêtes Win32 ont une priorité normale (`DSTORAGE_PRIORITY_NORMAL`).

Pour parcourir les niveaux de priorité, utilisez `DSTORAGE_PRIORITY_FIRST`, `DSTORAGE_PRIORITY_LAST` et `DSTORAGE_PRIORITY_COUNT`.

Pour plus d'informations, consultez la section « Priority » de la [Vue d'ensemble de DirectStorage](/fr-CA/build/console-features/storage/directstorage/directstorage-overview).

## Configuration requise

**En-tête :** dstorage\_xs.h

**Plateformes prises en charge :** consoles XBOX Series

## Voir aussi

[DStorage](/fr-CA/reference/system/dstorage/dstorage_members)


## Related topics

- [DSTORAGE_PRIORITY](/reference/system/dstorage/enums/dstorage_priority.md)
- [DSTORAGE_QUEUE_DESC](/reference/system/dstorage/structs/dstorage_queue_desc.md)
- [DStorage](/reference/system/dstorage/dstorage_members.md)
- [DSTORAGE_QUEUE_DESC1](/reference/system/dstorage/structs/dstorage_queue_desc1.md)
