> ## 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 (família XBOX One)

> Identifica o tipo de um recurso.

Identifica o tipo de um recurso.

<a id="syntaxSection" />

## Sintaxe

```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 | Descrição |
| - | - |
| XG\_RESOURCE\_DIMENSION\_UNKNOWN | O recurso é de um tipo desconhecido. |
| XG\_RESOURCE\_DIMENSION\_BUFFER | O recurso é um buffer. |
| XG\_RESOURCE\_DIMENSION\_TEXTURE1D | O recurso é uma textura 1D. |
| XG\_RESOURCE\_DIMENSION\_TEXTURE2D | O recurso é uma textura 2D. |
| XG\_RESOURCE\_DIMENSION\_TEXTURE3D | O recurso é uma textura 3D. |

<a id="remarksSection" />

## Comentários

Essa enumeração é usada pelas estruturas [XG\_RESOURCE\_DESC](/pt-BR/reference/graphics/xg__NR/structs/xg_resource_desc) e [XG\_RESOURCE\_LAYOUT](/pt-BR/reference/graphics/xg__NR/structs/xg_resource_layout) para identificar o tipo de um recurso de textura. `XG_RESOURCE_DIMENSION` também é usada pelas seguintes funções da biblioteca XBOX Graphics (XG).

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

Para obter mais informações sobre layouts de textura calculados, confira [Layouts de textura e tiling para XBOX Series X|S](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/scarlett-tex-layouts).

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** xg.h

**Biblioteca:** xg\_x.lib

**Plataformas com suporte:** família XBOX One

<a id="seealsoSection" />

## Confira também

[Gerenciamento de recursos nativos para XBOX One](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)\
[Referência do XG](/pt-BR/reference/graphics/xg__NR/xg_members)


## Related topics

- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [Índice de tópicos sob NDA para desenvolvimento de console com o XBOX GDK](/pt-BR/nda/nda-overview.md)
- [D3D12_UAV_DIMENSION](/pt-BR/reference/graphics/d3d12/enums/d3d12_uav_dimension_public.md)
- [D3D12_RTV_DIMENSION](/pt-BR/reference/graphics/d3d12/enums/d3d12_rtv_dimension_public.md)
- [D3D12_DSV_DIMENSION](/pt-BR/reference/graphics/d3d12/enums/d3d12_dsv_dimension_public.md)
