> ## 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_LAYOUT (famille XBOX One)

> Décrit l'ensemble de la disposition matérielle d'une seule ressource.

Décrit l'ensemble de la disposition matérielle d'une seule ressource.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
typedef struct XG_RESOURCE_LAYOUT {  
    UINT64 SizeBytes;
    UINT64 BaseAlignmentBytes;
    UINT32 MipLevels;
    UINT32 Planes;
    XG_PLANE_LAYOUT Plane[4];
    XG_RESOURCE_DIMENSION Dimension;
} XG_RESOURCE_LAYOUT  
```

<a id="membersSection" />

### Membres

*SizeBytes*\
Type : UINT64

Taille de la ressource, en octets.

*BaseAlignmentBytes*\
Type : UINT64

Alignement de base de la ressource, en octets.

*MipLevels*\
Type : UINT32

Nombre maximal de niveaux de mipmap dans la ressource.

*Planes*\
Type : UINT32

Nombre maximal de plans dans la ressource.

*Plane*\
Type : [XG\_PLANE\_LAYOUT](/fr-CA/reference/graphics/xg__NR/structs/xg_plane_layout)\[4]

Disposition des plans de la ressource, sous forme de tableau de structures [XG\_PLANE\_LAYOUT](/fr-CA/reference/graphics/xg__NR/structs/xg_plane_layout).

*Dimension*\
Type : [XG\_RESOURCE\_DIMENSION](/fr-CA/reference/graphics/xg__NR/enums/xg_resource_dimension)

Dimensionnalité de la ressource, sous forme de constante d'énumération [XG\_RESOURCE\_DIMENSION](/fr-CA/reference/graphics/xg__NR/enums/xg_resource_dimension).

<a id="remarksSection" />

## Remarques

Cette structure décrit l'ensemble de la disposition matérielle d'une seule ressource pour la bibliothèque XBOX Graphics (XG). Certaines configurations de ressources peuvent comprendre jusqu'à quatre (4) plans, chacun représentant une seule chaîne de mips.

`XG_RESOURCE_DESC` est utilisée par les fonctions et méthodes suivantes de la bibliothèque XG :

* [XGComputeBufferLayout](/fr-CA/reference/graphics/xg__NR/functions/xgcomputebufferlayout)
* [XGComputeTexture1DLayout](/fr-CA/reference/graphics/xg__NR/functions/xgcomputetexture1dlayout)
* [XGComputeTexture2DLayout](/fr-CA/reference/graphics/xg__NR/functions/xgcomputetexture2dlayout)
* [XGComputeTexture3DLayout](/fr-CA/reference/graphics/xg__NR/functions/xgcomputetexture3dlayout)
* [XGTextureAddressComputer::GetResourceLayout](/fr-CA/reference/graphics/xg__NR/interfaces/XGTextureAddressComputer/methods/xgtextureaddresscomputer_getresourcelayout)

Pour plus d'informations sur la bibliothèque XG, consultez [Gestion des ressources natives pour XBOX One](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management).

<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

[Référence XG](/fr-CA/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)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
