> ## 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_TILE_SHAPE (XBOX One 系列)

> 儲存圖格的寬度、高度和深度 (以紋素為單位)。

儲存圖格的寬度、高度和深度 (以紋素為單位)。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XG_TILE_SHAPE {
    UINT32 WidthInTexels;
    UINT32 HeightInTexels;
    UINT32 DepthInTexels;
} XG_TILE_SHAPE  
```

<a id="membersSection" />

### 成員

*WidthInTexels*\
類型：UINT32

圖格的寬度 (以紋素為單位)。

*HeightInTexels*\
類型：UINT32

圖格的高度 (以紋素為單位)。

*DepthInTexels*\
類型：UINT32

圖格的深度 (以紋素為單位)。

<a id="remarksSection" />

## 備註

此結構為 XBOX Graphics (XG) 程式庫儲存圖格的寬度、高度和深度 (以紋素為單位)。下列 XG 程式庫函式與方法會使用 `XG_TILE_SHAPE`：

* [XGComputeTileShape](/zh-TW/reference/graphics/xg__NR/functions/xgcomputetileshape)
* [XGTextureAddressComputer::GetResourceTiling](/zh-TW/reference/graphics/xg__NR/interfaces/XGTextureAddressComputer/methods/xgtextureaddresscomputer_getresourcetiling)

如需 XG 程式庫的詳細資訊，請參閱 [XBOX One 的原生資源管理](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)。

<a id="requirementsSection" />

## 需求

**標頭：** xg.h

**程式庫：** xg\_x.lib

**支援的平台：** XBOX One 系列

<a id="seealsoSection" />

## 另請參閱

[XG 參考](/zh-TW/reference/graphics/xg__NR/xg_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX GDK 主机开发 NDA 主题索引](/zh-CN/nda/nda-overview.md)
- [D3D12_TILE_SHAPE](/zh-CN/reference/graphics/d3d12/structs/d3d12_tile_shape_public.md)
- [NDA topics index for XBOX GDK console development](/nda/nda-overview.md)
- [CopyTiles](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md)
