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

# XGTextureAddressComputer::GetResourceTiling

> 如果資源是使用 XG_RESOURCE_MISC_TILED 旗標建立為並排資源，則傳回資源並排配置。

如果資源是使用 XG\_RESOURCE\_MISC\_TILED 旗標建立為並排資源，則傳回資源並排配置。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT GetResourceTiling(
         UINT32 *pNumTilesForEntireResource,
         XG_PACKED_MIP_DESC *pPackedMipDesc,
         XG_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
         UINT32 *pNumSubresourceTilings,
         UINT32 FirstSubresourceTilingToGet,
         XG_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips
)  
```

<a id="ID4EG" />

### 參數

*pNumTilesForEntireResource*   \_Out\_opt\_<br />類型：UINT32 \*

整個資源的圖格數目，以指向 UINT32 的指標形式提供。

*pPackedMipDesc*   \_Out\_opt\_<br />類型：[XG\_PACKED\_MIP\_DESC\*](/zh-TW/reference/graphics/xg__NR/structs/xg_packed_mip_desc)

封裝 mip 的描述，以指向 [XG\_PACKED\_MIP\_DESC](/zh-TW/reference/graphics/xg__NR/structs/xg_packed_mip_desc) 結構的指標形式提供。

*pStandardTileShapeForNonPackedMips*   \_Out\_opt\_<br />類型：[XG\_TILE\_SHAPE\*](/zh-TW/reference/graphics/xg__NR/structs/xg_tile_shape)

非封裝 mip 的標準圖格形狀，以指向 [XG\_TILE\_SHAPE](/zh-TW/reference/graphics/xg__NR/structs/xg_tile_shape) 結構的指標形式提供。

*pNumSubresourceTilings*   \_Inout\_opt\_<br />類型：UINT32 \*

子資源並排的數目，以指向 UINT32 的指標形式提供。

*FirstSubresourceTilingToGet*   \_In\_<br />類型：UINT32

要取得的第一個子資源並排，以 UINT32 形式提供。

*pSubresourceTilingsForNonPackedMips*   \_Out\_writes\_(\*pNumSubresourceTilings)<br />類型：[XG\_SUBRESOURCE\_TILING\*](/zh-TW/reference/graphics/xg__NR/structs/xg_subresource_tiling)

非封裝 mip 的子資源並排，以指向 [XG\_SUBRESOURCE\_TILING](/zh-TW/reference/graphics/xg__NR/structs/xg_subresource_tiling) 結構的指標形式提供。

<a id="ID4EP" />

### 傳回值

類型：[HRESULT](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/0642cb2f-2075-4469-918c-4441e69c548a)

如果成功，則傳回 **S\_OK**；否則傳回錯誤碼。如需錯誤碼的清單，請參閱[錯誤碼](/zh-TW/reference/errorcodes)。

<a id="remarks" />

## 備註

如果資源是使用 [XG\_RESOURCE\_MISC\_TILED](/zh-TW/reference/graphics/xg__NR/enums/xg_resource_misc_flag) 旗標建立為並排資源，此方法會傳回資源並排配置。

<a id="requirements" />

## 需求

**標頭：** xg.h

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

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

<a id="ID4EWC" />

## 另請參閱

[XGTextureAddressComputer](/zh-TW/reference/graphics/xg__NR/interfaces/XGTextureAddressComputer/xgtextureaddresscomputer)<br />[XG 參考](/zh-TW/reference/graphics/xg__NR/xg_members)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
