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

# XG_RESOURCE_DIMENSION (famille XBOX One)

> Identifie le type d'une ressource.

Identifie le type d'une ressource.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
enum XG_RESOURCE_DIMENSION
{
    XG_RESOURCE_DIMENSION_UNKNOWN = 0,
    XG_RESOURCE_DIMENSION_BUFFER = 1,
    XG_RESOURCE_DIMENSION_TEXTURE1D = 2,
    XG_RESOURCE_DIMENSION_TEXTURE2D = 3,
    XG_RESOURCE_DIMENSION_TEXTURE3D = 4
}  
```

<a id="constantsSection" />

## Constantes

| Constante | Description |
| - | - |
| XG\_RESOURCE\_DIMENSION\_UNKNOWN | La ressource est d'un type inconnu. |
| XG\_RESOURCE\_DIMENSION\_BUFFER | La ressource est une mémoire tampon. |
| XG\_RESOURCE\_DIMENSION\_TEXTURE1D | La ressource est une texture 1D. |
| XG\_RESOURCE\_DIMENSION\_TEXTURE2D | La ressource est une texture 2D. |
| XG\_RESOURCE\_DIMENSION\_TEXTURE3D | La ressource est une texture 3D. |

<a id="remarksSection" />

## Remarques

Cette énumération est utilisée par les structures [XG\_RESOURCE\_DESC](/fr/reference/graphics/xg__NR/structs/xg_resource_desc) et [XG\_RESOURCE\_LAYOUT](/fr/reference/graphics/xg__NR/structs/xg_resource_layout) pour identifier le type d'une ressource de texture. `XG_RESOURCE_DIMENSION` est également utilisée par les fonctions suivantes de la bibliothèque XBOX Graphics (XG).

* [XGComputeOptimalTileMode](/fr/reference/graphics/xg__NR/functions/xgcomputeoptimaltilemode)
* [XGComputeTileShape](/fr/reference/graphics/xg__NR/functions/xgcomputetileshape)
* [XGDecodeDCC](/fr/reference/graphics/xg__NR/functions/xgdecodedcc)
* [XGEncodeDCC](/fr/reference/graphics/xg__NR/functions/xgencodedcc)

Pour plus d'informations sur les dispositions de texture calculées, consultez [Dispositions de texture et tiling pour XBOX Series X|S](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/scarlett-tex-layouts).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** xg.h

**Bibliothèque :** xg\_x.lib

**Plateformes prises en charge :** famille XBOX One

<a id="seealsoSection" />

## Voir aussi

[Gestion native des ressources pour XBOX One](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)\
[Référence XG](/fr/reference/graphics/xg__NR/xg_members)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
- [NDA topics index for XBOX GDK console development](/nda/nda-overview.md)
