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

> 取得硬體紋理配置的 Swizzle 模式資訊。

取得硬體紋理配置的 Swizzle 模式資訊。

## 語法

```cpp theme={null}
HRESULT GetSwizzlePatternInfo(  
         UINT32 PlaneIndex,  
         XG_SWIZZLE_PATTERN_INFO* pInfo
)  
```

### 參數

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

要取得資訊之平面的索引。

*pInfo*   \_Out\_\
類型：[XG\_SWIZZLE\_PATTERN\_INFO](/zh-TW/reference/graphics/xg_xs/structs/xg_swizzle_pattern_info)\*

指向要傳回資訊之結構的指標。

### 傳回值

類型：HRESULT

如果成功，則傳回 S\_OK；否則傳回錯誤碼。

## 備註

目前只能取得非中繼資料表面的
Swizzle 模式資訊。

<a id="requirements" />

## 需求

**標頭:** xg\_xs.h

**程式庫:** xg\_xs.lib\
**支援的平台**: \{% term scarlett-family %}

## 另請參閱

[XGTextureAddressComputer](/zh-TW/reference/graphics/xg_xs/interfaces/XGTextureAddressComputer/xgtextureaddresscomputer_xs)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [NDA topic directory - live Microsoft Learn links](/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)
