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

# XGCreateTextureComputerFromDescriptor (XBOX One 系列)

> 為指定的紋理描述元建立紋理位址計算器物件。

為指定的紋理描述元建立紋理位址計算器物件。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XGCreateTextureComputerFromDescriptor(
         const XG_DESCRIPTOR_TEXTURE_VIEW *pDescriptor,
         XGTextureAddressComputer **ppComputer
)  
```

<a id="ID4EG" />

### 參數

*pDescriptor*   \_In\_<br />類型：[XG\_DESCRIPTOR\_TEXTURE\_VIEW\*](/zh-TW/reference/graphics/xg__NR/structs/xg_descriptor_texture_view)

紋理檢視描述元，以指向 [XG\_DESCRIPTOR\_TEXTURE\_VIEW\*](/zh-TW/reference/graphics/xg__NR/structs/xg_descriptor_texture_view) 結構的指標表示。

*ppComputer*   \_Out\_<br />類型：XGTextureAddressComputer\*\*

輸出為紋理描述元新建立的紋理位址計算器物件，以指向 [XGTextureAddressComputer](/zh-TW/reference/graphics/xg__NR/interfaces/XGTextureAddressComputer/xgtextureaddresscomputer) 執行個體的指標表示。

<a id="ID4EO" />

### 傳回值

類型：[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 系列

## 另請參閱

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


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
