> ## 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::GetResourceLayout

> 傳回為此紋理資源計算出的 XG_RESOURCE_LAYOUT 值。

傳回為此紋理資源計算出的 XG\_RESOURCE\_LAYOUT 值。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT GetResourceLayout(
         XG_RESOURCE_LAYOUT *pLayout
)  
```

<a id="ID4EU" />

### 參數

*pLayout*   \_Out\_<br />類型：[XG\_RESOURCE\_LAYOUT\*](/zh-TW/reference/graphics/xg__NR/structs/xg_resource_layout)

為此紋理資源計算出的資源配置，以指向 [XG\_RESOURCE\_LAYOUT](/zh-TW/reference/graphics/xg__NR/structs/xg_resource_layout) 結構的指標形式提供。

<a id="ID4E4" />

### 傳回值

類型：[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="requirements" />

## 需求

**標頭：** xg.h

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

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

<a id="ID4ETB" />

## 另請參閱

[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)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
