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

> DStorage

# DStorage

## Interfaces

| Interface                                                                                                  | Description                                                            |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [IDStorageFactoryX](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)             | Represents the static DirectStorage factory object.                    |
| [IDStorageFactoryX1](/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1)          | Represents the static DirectStorage factory object.                    |
| [IDStorageFactoryX2](/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2)          | Represents the static DirectStorage factory object.                    |
| [IDStorageFileX](/reference/system/dstorage/interfaces/IDStorageFileX/idstoragefilex)                      | Represents a file to be accessed by DirectStorage.                     |
| [IDStorageQueueX](/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex)                   | Represents a DirectStorage queue.                                      |
| [IDStorageQueueX1](/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1)                | Represents a DirectStorage queue.                                      |
| [IDStorageQueueX2](/reference/system/dstorage/interfaces/IDStorageQueueX2/idstoragequeuex2)                | Represents a DirectStorage queue.                                      |
| [IDStorageStatusArrayX](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx) | Represents an array of status entries for the preceding read requests. |

## Functions

| Function                                                                      | Description                                      |
| ----------------------------------------------------------------------------- | ------------------------------------------------ |
| [DStorageGetFactory](/reference/system/dstorage/functions/dstoragegetfactory) | Returns the static DirectStorage factory object. |

## Structures

| Structure                                                                                              | Description                                            |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| [DSTORAGE\_ERROR\_RECORD](/reference/system/dstorage/structs/dstorage_error_record)                    | Detailed record of a failed DirectStorage request.     |
| [DSTORAGE\_PRIORITY\_STATS data structure](/reference/system/dstorage/structs/dstorage_priority_stats) | DirectStorage per priority statistics.                 |
| [DSTORAGE\_QUEUE\_DESC](/reference/system/dstorage/structs/dstorage_queue_desc)                        | Properties of a DirectStorage queue.                   |
| [DSTORAGE\_QUEUE\_DESC1](/reference/system/dstorage/structs/dstorage_queue_desc1)                      | Properties of a DirectStorage queue.                   |
| [DSTORAGE\_QUEUE\_INFO](/reference/system/dstorage/structs/dstorage_queue_info)                        | Properties and current state of a DirectStorage queue. |
| [DSTORAGE\_QUEUE\_INFO1](/reference/system/dstorage/structs/dstorage_queue_info1)                      | Properties and current state of a DirectStorage queue. |
| [DSTORAGE\_QUEUE\_OPTIONS](/reference/system/dstorage/structs/dstorage_queue_options)                  | Options for a DirectStorage queue creation.            |
| [DSTORAGE\_REQUEST](/reference/system/dstorage/structs/dstorage_request)                               | Represents a DirectStorage read request.               |
| [DSTORAGE\_REQUEST\_OPTIONS](/reference/system/dstorage/structs/dstorage_request_options)              | Options for a DirectStorage read request.              |
| [DSTORAGE\_STATS](/reference/system/dstorage/structs/dstorage_stats)                                   | DirectStorage statistics.                              |

## Enumerations

| Enumeration                                                                                      | Description                                                                 |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| [DSTORAGE\_BCPACK\_MODE](/reference/system/dstorage/enums/dstorage_bcpack_mode)                  | Types of BCPack decompression to perform after content is read from a file. |
| [DSTORAGE\_COMMAND\_TYPE](/reference/system/dstorage/enums/dstorage_command_type)                | Types of DirectStorage requests.                                            |
| [DSTORAGE\_DEBUG](/reference/system/dstorage/enums/dstorage_debug)                               | Flags that control the DirectStorage debug layer.                           |
| [DSTORAGE\_PRIORITY](/reference/system/dstorage/enums/dstorage_priority)                         | Priority levels of a DirectStorage queue.                                   |
| [DSTORAGE\_REQUEST\_SOURCE\_TYPE](/reference/system/dstorage/enums/dstorage_request_source_type) | Source types of a DirectStorage request.                                    |
| [DSTORAGE\_STAGING\_BUFFER\_SIZE](/reference/system/dstorage/enums/dstorage_staging_buffer_size) | Valid staging buffer sizes.                                                 |
| [DSTORAGE\_SWIZZLE\_MODE](/reference/system/dstorage/enums/dstorage_swizzle_mode)                | Types of texture swizzling to perform.                                      |


## Related topics

- [DSTORAGE_STATS](/reference/system/dstorage/structs/dstorage_stats.md)
- [DSTORAGE_DEBUG](/reference/system/dstorage/enums/dstorage_debug.md)
- [DSTORAGE_PRIORITY](/reference/system/dstorage/enums/dstorage_priority.md)
- [DSTORAGE_REQUEST](/reference/system/dstorage/structs/dstorage_request.md)
- [DSTORAGE_QUEUE_DESC](/reference/system/dstorage/structs/dstorage_queue_desc.md)
