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

> 傳回指定平面的紋理檢視描述元。

傳回指定平面的紋理檢視描述元。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT GetTextureViewDescriptor(
         UINT32 PlaneIndex,
         XG_DESCRIPTOR_TEXTURE_VIEW *pDescriptor
)  
```

<a id="ID4EG" />

### 參數

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

平面的索引編號。

*pDescriptor*   \_Out\_<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) 結構的指標形式提供。

<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)。如果函式因指定的平面無法以描述元描述而失敗，傳回值會設為 **E\_INVALIDARG**。

<a id="requirements" />

## 需求

**標頭：** xg.h

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

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

<a id="ID4EKB" />

## 另請參閱

[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 라이브 링크](/ko/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
