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

# GetAbsoluteStreamIndex(size_t MipLevel, uint32_t TileX, uint32_t TileY)

> 根據紋理的 mip 層級 (LOD) 以及圖格座標，在其相關聯的封存中查詢資料流索引。

根據紋理的 mip 層級 (LOD) 以及圖格座標，在其相關聯的封存中查詢資料流索引。

## 語法

```cpp theme={null}

int32_t GetAbsoluteStreamIndex(
  size_t MipLevel,
  uint32_t TileX, 
  uint32_t TileY
)
```

### 參數

*MipLevel*\
類型: size\_t

要在其中尋找資料流索引的紋理 mip 層級。

*TileX*\
類型: uint32\_t

從 mip 層級的左側開始，TileX 代表所需 PRT 區域的欄索引。在 128KB 和 256KB 細微度下，紋理欄數是 64KB 細微度的一半。

*TileY*\
類型: uint32\_t

從 mip 層級的頂端開始，TileY 代表所需 PRT 區域的列索引。在 256KB 細微度下，紋理列數是 64KB 和 128KB 細微度的一半。

### 傳回值

類型: int32\_t

傳回所需紋理資料流在其封存中的絕對索引。如果要求無效，則傳回 -1。

## 需求

**標頭:** XBTC.h\
**支援的平台**: XBOX One 系列主機與 XBOX Series 主機

## 另請參閱

[XBTC 成員](/zh-TW/reference/graphics/xbtc/xbtc_members)\
[XBTCStreamingTextureReader](/zh-TW/reference/graphics/xbtc/interfaces/xbtcstreamingtexturereader/xbtcstreamingtexturereader)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [D3D12_TEX2D_ARRAY_SRV](/reference/graphics/d3d12/structs/d3d12_tex2d_array_srv_public.md)
- [Why Sampler Feedback?](/build/core-features/graphics/newfeatures/sfs/why-sf.md)
