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

> Descreve todo o layout de hardware de um único recurso.

Descreve todo o layout de hardware de um único recurso.

<a id="syntaxSection" />

## Sintaxe

```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" />

### Membros

*SizeBytes*\
Tipo: UINT64

O tamanho do recurso, em bytes.

*BaseAlignmentBytes*\
Tipo: UINT64

O alinhamento base do recurso, em bytes.

*MipLevels*\
Tipo: UINT32

O número máximo de níveis de mipmap no recurso.

*Planes*\
Tipo: UINT32

O número máximo de planos no recurso.

*Plane*\
Tipo: [XG\_PLANE\_LAYOUT](/pt-BR/reference/graphics/xg__NR/structs/xg_plane_layout)\[4]

O layout de plano do recurso, como uma matriz de estruturas [XG\_PLANE\_LAYOUT](/pt-BR/reference/graphics/xg__NR/structs/xg_plane_layout).

*Dimension*\
Tipo: [XG\_RESOURCE\_DIMENSION](/pt-BR/reference/graphics/xg__NR/enums/xg_resource_dimension)

A dimensionalidade do recurso, como uma constante de enumeração [XG\_RESOURCE\_DIMENSION](/pt-BR/reference/graphics/xg__NR/enums/xg_resource_dimension).

<a id="remarksSection" />

## Comentários

Essa estrutura descreve todo o layout de hardware de um único recurso para a biblioteca XBOX Graphics (XG). Determinadas configurações de recurso podem incluir até quatro (4) planos, com cada plano representando uma única cadeia de mips.

`XG_RESOURCE_DESC` é usada pelas seguintes funções e métodos da biblioteca XG:

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

Para obter mais informações sobre a biblioteca XG, confira [Gerenciamento de recursos nativos para XBOX One](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management).

<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

[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)
- [GameInputKeyboardLayoutCallback](/pt-BR/reference/input/gameinput/functions/gameinputkeyboardlayoutcallback.md)
- [D3D12_INPUT_LAYOUT_DESC](/pt-BR/reference/graphics/d3d12/structs/d3d12_input_layout_desc_public.md)
- [XGameStreamingShowTouchControlLayout](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)
