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

# XBTCDecompressTexture

> 將封存的紋理解壓縮至並排記憶體。

將封存的紋理解壓縮至並排記憶體。

## 語法

```cpp theme={null}
HRESULT XBTCDecompressTexture(  
         void* pTiledMemory,  
         size_t UncompressedSize,  
         const XBTCArchive* pArchive,  
         uint32_t TextureIdx  
)  
```

### 參數

*pTiledMemory*   \_Out\_writes\_(UncompressedSize)\
類型：void\*

指向並排記憶體的指標。

*UncompressedSize*   \_In\_\
類型：size\_t

未壓縮紋理的大小 (以位元組為單位)。

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

指向 `XBTCArchive` 執行個體的指標。

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

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

### 傳回值

類型：HRESULT

如果成功，則傳回 `S_OK`；否則會傳回 HRESULT 錯誤碼。

## 備註

`XBTCDecompressTexture` 會解壓縮封存的紋理，並寫入預先配置的並排紋理記憶體。
如需配置並排紋理並解壓縮至其中的詳細資訊，請參閱 [XBTCDecompressTextureAlloc](/zh-TW/reference/graphics/xbtc/functions/xbtcdecompresstexturealloc)。

## 需求

**標頭:** 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)
- [Easy Hardware Decompression](/build/console-features/storage/directstorage/directstorage-drop-in-decompression.md)
- [D3D12_TEXTURE_COPY_LOCATION](/reference/graphics/d3d12/structs/d3d12_texture_copy_location_public.md)
- [XBOX Texture Compressor (XBTC) tool reference](/build/core-features/graphics/newfeatures/xbtc/index.md)
