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

# XBTCDecompressAndDetileTextureAlloc

> 透過解壓縮封存中的紋理並解除其並排，建立線性紋理並為其配置紋理容器。

透過解壓縮封存中的紋理並解除其並排，建立線性紋理並為其配置紋理容器。

## 語法

```cpp theme={null}
HRESULT XBTCDecompressAndDetileTextureAlloc(  
         XBTCTextureContainer** ppTextureContainer,  
         const XBTCArchive* pArchive,  
         uint32_t TextureIdx  
)  
```

### 參數

*ppTextureContainer*   \_Out\_\
類型：[XBTCTextureContainer](/zh-TW/reference/graphics/xbtc/interfaces/XBTCTextureContainer/xbtctexturecontainer)\*\*

指向 `XBTCTextureContainer` 位址的指標。

*pArchive*   \_In\_\
類型：[XBTCArchive](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchive/xbtcarchive)\*

指向 `XBTCArchive` 的指標。

*TextureIdx*   \_In\_\
類型：uint32\_t

紋理之以零為起始的索引。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

`XBTCDecompressAndDetileTextureAlloc` 會透過解壓縮封存中的紋理並解除其並排，建立線性紋理並為其配置紋理容器。
如需 XBTC 封存的詳細資訊，請參閱 [XBOX Texture Compressor (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)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [NDA トピック ディレクトリ - Microsoft Learn 公開版へのリンク](/ja-jp/nda/nda-topic-directory.md)
- [GetResourceAllocationInfo](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
