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

# XBTC_OFFSET_AND_INDEX

> 封存中紋理的資料流資料相關資訊。

封存中紋理的資料流資料相關資訊。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XBTC_OFFSET_AND_INDEX {  
    uint64_t BaseOffset : 40;  
    uint64_t NextIndex : 24;  
} XBTC_OFFSET_AND_INDEX  
```

<a id="membersSection" />

### 成員

*BaseOffset*\
類型: uint64\_t

紋理在資料區塊中的基底位移。

*NextIndex*\
類型: uint64\_t

下一個紋理的基底資料流索引。

<a id="remarksSection" />

## 備註

請使用 [XBTCArchiveReader](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/xbtcarchivereader) 執行個體的 [GetTextureOffset](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_gettextureoffset) 方法，存取封存中指定紋理的此結構。

請使用此結構來判斷哪些壓縮資料流對應到紋理，其中 `BaseOffset` 代表目前紋理之資料流資料起始處的 40 位元搜尋位移，而 `NextIndex` 代表下一個紋理的基底資料流索引。封存中最後一個紋理的 `NextIndex` 值表示封存中的資料流總數。資料流之 [XBTC\_STREAM\_INFO](/zh-TW/reference/graphics/xbtc/structs/xbtc_stream_info) 結構中的 `RelativeOffset` 值，是相對於該資料流所屬紋理之此結構的 `BaseOffset` 值。如需 XBTC 封存內容與結構的詳細資訊，請參閱 [XBOX Texture Compressor (XBTC) 封存檔案規格](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/newfeatures/xbtc/xbtc-archive-format)。

<a id="requirementsSection" />

## 需求

**標頭:** XBTC.h

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

<a id="seealsoSection" />

## 另請參閱

[XBTC\_ARCHIVE\_HEADER](/zh-TW/reference/graphics/xbtc/structs/xbtc_archive_header)\
[XBTC\_STREAM\_INFO](/zh-TW/reference/graphics/xbtc/structs/xbtc_stream_info)\
[XBTC\_TEXTURE\_INFO](/zh-TW/reference/graphics/xbtc/structs/xbtc_texture_info)\
[XBTC](/zh-TW/reference/graphics/xbtc/xbtc_members)


## 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)
- [NDA トピック ディレクトリ - Microsoft Learn 公開版へのリンク](/ja-jp/nda/nda-topic-directory.md)
- [NDA topics index for XBOX GDK console development](/nda/nda-overview.md)
