> ## 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 (XBOX Series 主機)

> 保存指定紋理資源的已計算紋理配置。也保存可讓使用者執行紋理元素 Swizzle 的其他狀態。

保存指定紋理資源的已計算紋理配置。也保存可讓使用者執行紋理元素 Swizzle 的其他狀態。

## 語法

```cpp theme={null}
class XGTextureAddressComputer  
```

## 方法

| 方法 | 描述 |
| - | - |
| [XGTextureAddressComputer::CopyFromSubresource](/zh-TW/reference/graphics/xg_xs/interfaces/XGTextureAddressComputer/methods/xgtextureaddresscomputer_copyfromsubresource_xs) | 將資源指定子資源 (mip + 配量) 中的 2D 或 3D 資料複製到線性目的地。 |
| [XGTextureAddressComputer::GetTexelElementOffsetBytes](/zh-TW/reference/graphics/xg_xs/interfaces/XGTextureAddressComputer/methods/xgtextureaddresscomputer_gettexelelementoffsetbytes_xs) | 計算指定材質像素元素相對於資源基底位址的位移 (以位元組為單位)。 |

## 備註

此類別採用參考計數，並會在其參考計數達到零時自行刪除。

## 需求

**標頭:** xg\_xs.h\
**支援的平台**: XBOX Series 主機

## 另請參閱

[XBOX Series X|S 的紋理配置與並排](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/scarlett-tex-layouts)

[xg\_xs](/zh-TW/reference/graphics/xg_xs/xg_xs_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)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/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)
