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

# XBTCGetRelativeStreamIndex(unit32_t,uint32_t)

> 從 Mip 層級取得 Mip 串流紋理之資料流的索引。

從 Mip 層級取得 Mip 串流紋理之資料流的索引。

## 語法

```cpp theme={null}
int32_t XBTCGetRelativeStreamIndex(  
         uint32_t MipStreams,  
         uint32_t MipLevel  
)  
```

### 參數

*MipStreams*   \
類型: uint32\_t

基底紋理之後可串流的詳細程度 (LOD) 數目。

*MipLevel*   \
類型: uint32\_t

Mip 解析度的層級。

### 傳回值

類型: int32\_t

HRESULT 成功或錯誤碼。

## 備註

`XBTCGetRelativeStreamIndex` 會傳回與資源相關聯的相對 Mip 資料流索引。\
對於 Mip 串流紋理，會先壓縮基底紋理，之後再依序壓縮解析度更高的每個 Mip 層級。\
此方法假設紋理的維度為 `kTexture2D`。

如需分頁紋理 (SFS) 的詳細資訊，請參閱 [XBTCGetRelativeStreamIndex](/zh-TW/reference/graphics/xbtc/functions/xbtcgetrelativestreamindex)。
如需 XBTC 封存的詳細資訊，請參閱 [XBOX 紋理壓縮器 (XBTC)](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/newfeatures/xbtc/xbox-texture-compressor)。

## 需求

**標頭:** XBTC.h

**支援的平台**: XBOX One 系列主機與 XBOX Series 主機

## 另請參閱

[XBTC](/zh-TW/reference/graphics/xbtc/xbtc_members)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [XGameUiTextEntryGetState](/reference/system/xgameui/functions/xgameuitextentrygetstate.md)
- [XGameUiTextEntryOpen](/reference/system/xgameui/functions/xgameuitextentryopen.md)
- [GameInputButtonMapping](/reference/input/gameinput/structs/gameinputbuttonmapping.md)
- [GameInputAxisMapping](/reference/input/gameinput/structs/gameinputaxismapping.md)
