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

> 描述紋理硬體配置中的 mip 鏈結。

描述紋理硬體配置中的 mip 鏈結。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XG_PLANE_LAYOUT {  
    XG_PLANE_USAGE Usage;
    UINT64 SizeBytes;
    UINT64 BaseOffsetBytes;
    UINT64 BaseAlignmentBytes;
    UINT32 BytesPerElement;
    XG_MIPLEVEL_LAYOUT MipLayout[15];
} XG_PLANE_LAYOUT  
```

<a id="membersSection" />

### 成員

*Usage*\
類型：[XG\_PLANE\_USAGE](/zh-TW/reference/graphics/xg__NR/enums/xg_plane_usage)

mip 鏈結的預期用途。

*SizeBytes*\
類型：UINT64

mip 鏈結的大小 (以位元組為單位)。

*BaseOffsetBytes*\
類型：UINT64

mip 鏈結的基底位移 (以位元組為單位)。

*BaseAlignmentBytes*\
類型：UINT64

mip 鏈結的基底對齊 (以位元組為單位)。

*BytesPerElement*\
類型：UINT32

mip 鏈結中每個元素的位元組數。

*MipLayout*\
類型：[XG\_MIPLEVEL\_LAYOUT](/zh-TW/reference/graphics/xg__NR/structs/xg_miplevel_layout)\[15]

mip 鏈結中各 mip 層級的配置。

<a id="remarks" />

## 備註

此結構描述以 [XG\_RESOURCE\_LAYOUT](/zh-TW/reference/graphics/xg__NR/structs/xg_resource_layout) 結構表示之計算紋理配置中的 mip 鏈結或平面。每個計算出的紋理配置都包含 1 到 4 個平面，每個平面都以 `XG_PLANE_LAYOUT` 結構表示。接著，一個平面包含 1 到 16 個 mip 層級，每個層級都以 [XG\_MIPLEVEL\_LAYOUT](/zh-TW/reference/graphics/xg__NR/structs/xg_miplevel_layout) 結構表示。數個 XBOX Graphics (XG) 程式庫物件和函式會使用 `XG_RESOURCE_LAYOUT` 結構來計算紋理的位址、硬體配置與對齊。

如需計算紋理配置的詳細資訊，請參閱 [XBOX Series X|S 的紋理配置與並排](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/scarlett-tex-layouts)。

<a id="requirementsSection" />

## 需求

**標頭：** xg.h

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

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

<a id="seealsoSection" />

## 另請參閱

[XBOX One 的原生資源管理](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/directx/native-resource-management)\
[XGComputeBankRotationAddress](/zh-TW/reference/graphics/xg__NR/functions/xgcomputebankrotationaddress)\
[XGComputeBufferLayout](/zh-TW/reference/graphics/xg__NR/functions/xgcomputebufferlayout)\
[XGTextureAddressComputer](/zh-TW/reference/graphics/xg__NR/interfaces/XGTextureAddressComputer/xgtextureaddresscomputer)\
[XGComputeTexture1DLayout](/zh-TW/reference/graphics/xg__NR/functions/xgcomputetexture1dlayout)\
[XGComputeTexture2DLayout](/zh-TW/reference/graphics/xg__NR/functions/xgcomputetexture2dlayout)\
[XGComputeTexture3DLayout](/zh-TW/reference/graphics/xg__NR/functions/xgcomputetexture3dlayout)\
[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-TW/nda/nda-overview.md)
- [GameInputKeyboardLayoutCallback](/zh-TW/reference/input/gameinput/functions/gameinputkeyboardlayoutcallback.md)
- [D3D12_INPUT_LAYOUT_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_input_layout_desc_public.md)
- [XGameStreamingShowTouchControlLayout](/zh-TW/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)
