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

# XBTCTileTexture

> 透過 Swizzle 線性紋理容器的記憶體，為並排紋理建立並配置紋理容器。

透過 Swizzle 線性紋理容器的記憶體，為並排紋理建立並配置紋理容器。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XBTCTileTexture(  
         XBTCTextureContainer** ppTiledTexture,  
         const XBTCTextureContainer* pLinearTexture,  
         XBTC_TILING_MODE TilingMode  
)  
```

<a id="parametersSection" />

### 參數

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

要建立的並排紋理。

*pLinearTexture*   \_In\_\
類型: XBTCTextureContainer\*

要進行 Swizzle 的線性紋理。

*TilingMode*   \_In\_\
類型: [XBTC\_TILING\_MODE](/zh-TW/reference/graphics/xbtc/enums/xbtc_tiling_mode)

要套用至 *pLinearTexture* 的並排模式。

<a id="retvalSection" />

### 傳回值

類型: HRESULT

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

<a id="remarksSection" />

## 備註

此方法會從線性紋理建立並排紋理。此方法會使用 `TilingMode` 中的並排模式，對 `pLinearTexture` 所指定 `XBTCTextureContainer` 中線性紋理的記憶體進行 Swizzle，然後在 `ppTiledTexture` 所指定的 `XBTCTextureContainer` 中傳回產生的並排紋理。您也可以使用 [XBTCDetileTexture](/zh-TW/reference/graphics/xbtc/functions/xbtcdetiletexture) 方法，對並排紋理之 `XBTCTextureContainer` 的記憶體取消 Swizzle，以在 `XBTCTextureContainer` 中建立線性紋理。如需 XBTC 功能的詳細資訊，請參閱 [XBOX 紋理壓縮器 (XBTC)](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/graphics/newfeatures/xbtc/xbox-texture-compressor)。

<a id="requirementsSection" />

## 需求

**標頭:** XBTC.h

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

<a id="seealsoSection" />

## 另請參閱

[XBTCompressTexture](/zh-TW/reference/graphics/xbtc/functions/xbtccompresstexture)\
[XBTCTileAndCompressTexture](/zh-TW/reference/graphics/xbtc/functions/xbtctileandcompresstexture)\
[XBTC](/zh-TW/reference/graphics/xbtc/xbtc_members)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [CopyTiles](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md)
- [Why Sampler Feedback?](/build/core-features/graphics/newfeatures/sfs/why-sf.md)
- [D3D12_TILE_REGION_SIZE](/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [GetResourceAllocationInfo1 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
