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

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

封存中紋理的相關資訊。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XBTC_TEXTURE_INFO {  
    uint64_t Format : 8;  
    uint64_t Dimension : 2;  
    uint64_t Width : 14;  
    uint64_t Height : 14;  
    uint64_t Depth : 11;  
    uint64_t TileMode : 3;  
    uint64_t MipCount : 4;  
    uint64_t MipStreams : 4;  
    uint64_t Granularity : 2;  
    uint64_t Reserved : 2;  
} XBTC_TEXTURE_INFO  
```

<a id="membersSection" />

### 成員

*Format*\
類型: uint64\_t

紋理的格式，以 [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format) 列舉值表示。

*Dimension*\
類型: uint64\_t

紋理的維度，以 [XBTC\_TEX\_DIMENSION](/zh-TW/reference/graphics/xbtc/enums/xbtc_tex_dimension) 列舉值表示。

*Width*\
類型: uint64\_t

mip 0 的寬度 (以像素為單位) 減 1。

*Height*\
類型: uint64\_t

mip 0 的高度 (以像素為單位) 減 1。

*Depth*\
類型: uint64\_t

深度 (或陣列計數) 減 1。

*TileMode*\
類型: uint64\_t

紋理的並排模式，以 [XBTC\_TILING\_MODE](/zh-TW/reference/graphics/xbtc/enums/xbtc_tiling_mode) 列舉值表示。

*MipCount*\
類型: uint64\_t

詳細層級 (LOD) mipmap 的總數。

*MipStreams*\
類型: uint64\_t

初始載入後可串流載入的額外 LOD 數目。

*Granularity*\
類型: uint64\_t

[XBTC\_STREAM\_GRANULARITY](/zh-TW/reference/graphics/xbtc/enums/xbtc_stream_granularity) 的其中一個值。

*Reserved*\
類型: uint64\_t

保留供內部使用。

<a id="remarksSection" />

## 備註

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

請使用此結構取得紋理的相關資訊，例如紋理包含的格式、維度及 LOD 數目。您可以使用 [GetTextureOffset](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_gettextureoffset) 方法來判斷哪些壓縮資料流對應到紋理，並取得該紋理之資料流資料在封存中的起始位移。如需 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\_OFFSET\_AND\_INDEX](/zh-TW/reference/graphics/xbtc/structs/xbtc_offset_and_index)\
[XBTC\_STREAM\_INFO](/zh-TW/reference/graphics/xbtc/structs/xbtc_stream_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)
- [XBOX Texture Compressor (XBTC) tool reference](/build/core-features/graphics/newfeatures/xbtc/index.md)
