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

# D3D12XBOX_RESOURCE_DESC (famille XBOX One)

> Décrit une ressource, comme une texture.

Décrit une ressource, comme une texture.

## Syntaxe

```cpp theme={null}
typedef struct D3D12XBOX_RESOURCE_DESC {  
    D3D12_RESOURCE_DIMENSION Dimension;  
    UINT64 Alignment;  
    UINT64 Width;  
    UINT Height;  
    UINT16 DepthOrArraySize;  
    UINT16 MipLevels;  
    DXGI_FORMAT Format;  
    DXGI_SAMPLE_DESC SampleDesc;  
    D3D12_TEXTURE_LAYOUT Layout;  
    D3D12_RESOURCE_FLAGS Flags;  
    D3D12XBOX_DCC_OPTIONS DccOptions;  
} D3D12XBOX_RESOURCE_DESC  
```

### Membres

*Dimension*\
Type : [D3D12\_RESOURCE\_DIMENSION](/fr-CA/reference/graphics/d3d12_x/enums/d3d12_resource_dimension)

Ce membre de [D3D12\_RESOURCE\_DIMENSION](https://learn.microsoft.com/en-us/windows/desktop/api/d3d12/ne-d3d12-d3d12_resource_dimension) spécifie les dimensions de la ressource (par exemple, **D3D12\_RESOURCE\_DIMENSION\_TEXTURE1D**) ou indique s'il s'agit d'une mémoire tampon (D3D12\_RESOURCE\_DIMENSION\_BUFFER).

*Alignment*\
Type : UINT64

L'alignement.

*Width*\
Type : UINT64

La largeur de la ressource.

*Height*\
Type : UINT

La hauteur de la ressource.

*DepthOrArraySize*\
Type : UINT16

La profondeur de la ressource si elle est tridimensionnelle (3D), ou la taille du tableau s'il s'agit d'un tableau de ressources unidimensionnelles (1D) ou bidimensionnelles (2D).

*MipLevels*\
Type : UINT16

Le nombre de niveaux de mip.

*Format*\
Type : DXGI\_FORMAT

Un membre de **DXGI\_FORMAT**.

*SampleDesc*\
Type : DXGI\_SAMPLE\_DESC

Configuration de l'échantillonnage multiple de la ressource. Les paramètres de configuration sont définis par la structure **DXGI\_SAMPLE\_DESC**.

*Layout*\
Type : [D3D12\_TEXTURE\_LAYOUT](/fr-CA/reference/graphics/d3d12_x/enums/d3d12_texture_layout)

Un membre de **D3D12\_TEXTURE\_LAYOUT**.

*Flags*\
Type : [D3D12\_RESOURCE\_FLAGS](/fr-CA/reference/graphics/d3d12_x/enums/d3d12_resource_flags)

Indicateurs qui décrivent la ressource en détail. Les indicateurs valides sont définis par l'énumération **D3D12\_RESOURCE\_FLAGS**.

*DccOptions*\
Type : [D3D12XBOX\_DCC\_OPTIONS](/fr-CA/reference/graphics/d3d12_x/structs/d3d12xbox_dcc_options)

Configuration DCC de la ressource. Les options de configuration sont définies par la structure [D3D12XBOX\_DCC\_OPTIONS](/fr-CA/reference/graphics/d3d12_x/structs/d3d12xbox_dcc_options).

## Configuration requise

**En-tête :** d3d12\_x.h

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

## Voir aussi

[d3d12\_x](/fr-CA/reference/graphics/d3d12_x/d3d12_x_members)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/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 在线链接](/zh-CN/nda/nda-topic-directory.md)
