> ## 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'intégralité de la disposition matérielle d'une ressource unique.

Décrit l'intégralité de la disposition matérielle d'une ressource unique.

<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

La taille de la ressource, en octets.

*BaseAlignmentBytes*\
Type : UINT64

L'alignement de base de la ressource, en octets.

*MipLevels*\
Type : UINT32

Le nombre maximal de niveaux de mipmap dans la ressource.

*Planes*\
Type : UINT32

Le nombre maximal de plans dans la ressource.

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

La disposition des plans de la ressource, sous la forme d'un tableau de structures [XG\_PLANE\_LAYOUT](/fr/reference/graphics/xg__NR/structs/xg_plane_layout).

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

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

<a id="remarksSection" />

## Remarques

Cette structure décrit l'intégralité de la disposition matérielle d'une ressource unique pour la bibliothèque XBOX Graphics (XG). Certaines configurations de ressources peuvent comprendre jusqu'à quatre (4) plans, chaque plan 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/reference/graphics/xg__NR/functions/xgcomputebufferlayout)
* [XGComputeTexture1DLayout](/fr/reference/graphics/xg__NR/functions/xgcomputetexture1dlayout)
* [XGComputeTexture2DLayout](/fr/reference/graphics/xg__NR/functions/xgcomputetexture2dlayout)
* [XGComputeTexture3DLayout](/fr/reference/graphics/xg__NR/functions/xgcomputetexture3dlayout)
* [XGTextureAddressComputer::GetResourceLayout](/fr/reference/graphics/xg__NR/interfaces/XGTextureAddressComputer/methods/xgtextureaddresscomputer_getresourcelayout)

Pour plus d'informations sur la bibliothèque XG, consultez [Gestion native des ressources 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/reference/graphics/xg__NR/xg_members)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [Index des rubriques NDA pour le développement sur console avec le GDK XBOX](/fr/nda/nda-overview.md)
- [GameInputKeyboardLayoutCallback](/fr/reference/input/gameinput/functions/gameinputkeyboardlayoutcallback.md)
- [D3D12_INPUT_LAYOUT_DESC](/fr/reference/graphics/d3d12/structs/d3d12_input_layout_desc_public.md)
- [XGameStreamingShowTouchControlLayout](/fr/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)
