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

# XGComputeOptimalTileMode (XBOX One 系列)

> 為指定的紋理設定計算頻寬最佳的並排模式。

為指定的紋理設定計算頻寬最佳的並排模式。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
XG_TILE_MODE XGComputeOptimalTileMode(
         XG_RESOURCE_DIMENSION ResourceDimension,
         XG_FORMAT Format,
         UINT32 Width,
         UINT32 Height,
         UINT32 DepthOrArraySize,
         UINT32 SampleCount,
         UINT BindFlags,
         UINT MiscFlags= 0  
)  
```

<a id="ID4EU" />

### 參數

*ResourceDimension*   \_In\_\
類型：[XG\_RESOURCE\_DIMENSION](/zh-TW/reference/graphics/xg__NR/enums/xg_resource_dimension)

資源的維度 (例如 XG\_RESOURCE\_DIMENSION\_TEXTURE2D)，以指向 [XG\_RESOURCE\_DIMENSION](/zh-TW/reference/graphics/xg__NR/enums/xg_resource_dimension) 列舉的指標表示。

*Format*   \_In\_\
類型：[XG\_FORMAT](/zh-TW/reference/graphics/xg__NR/enums/xg_format)

資源資料格式，以指向 [XG\_FORMAT](/zh-TW/reference/graphics/xg__NR/enums/xg_format) 列舉的指標表示。

*Width*   \_In\_\
類型：UINT32

紋理的寬度 (以像素為單位)。

*Height*   \_In\_\
類型：UINT32

紋理的高度 (以像素為單位)。

*DepthOrArraySize*   \_In\_\
類型：UINT32

深度或陣列大小。

*SampleCount*   \_In\_\
類型：UINT32

樣本數目。

*BindFlags*   \_In\_\
類型：UINT

指出緩衝區將如何繫結至管線的旗標。為 [XG\_BIND\_FLAG](/zh-TW/reference/graphics/xg__NR/enums/xg_bind_flag) 列舉常數以邏輯 OR 運算的組合。

*MiscFlags*   \_In\_\
類型：UINT

用於控制此作業的其他旗標。為 [XG\_RESOURCE\_MISC\_FLAG](/zh-TW/reference/graphics/xg__NR/enums/xg_resource_misc_flag) 列舉常數以位元 OR 運算的組合；如果未使用，則為 0。

<a id="ID4E3" />

### 傳回值

類型：XG\_TILE\_MODE

頻寬最佳的並排模式，以指向 [XG\_TILE\_MODE](/zh-TW/reference/graphics/xg__NR/enums/xg_tile_mode) 列舉的指標表示。

<a id="requirements" />

## 需求

**標頭：** xg.h

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

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

## 另請參閱

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


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [CopyTiles](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md)
- [CopyTileMappings](/zh-CN/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_copytilemappings_public.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [D3D12_TILE_SHAPE](/zh-CN/reference/graphics/d3d12/structs/d3d12_tile_shape_public.md)
