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

# XBTCArchive::GetResourceCount

> XBTCArchive::GetResourceCount (xbtc) — 取得封存中的紋理數目。適用於 XBOX 遊戲開發的 Direct3D 12 圖形 API 參考。

取得封存中的紋理數目。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
uint32_t GetResourceCount(  
)  
```

<a id="parametersSection" />

### 參數

無。

<a id="retvalSection" />

### 傳回值

類型: uint32\_t

XBTC 封存中的紋理數目。

<a id="remarksSection" />

## 備註

此方法會傳回 XBTC 封存中的紋理數目。您也可以使用 [GetStreamCount](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchive/methods/xbtcarchive_getstreamcount) 方法來取得封存中的資料流總數。如需 XBTC 封存內容與結構的詳細資訊，請參閱 [XBOX 紋理壓縮器 (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" />

## 另請參閱

[GetResourceStreamCount](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchive/methods/xbtcarchive_getresourcestreamcount)\
[XBTCArchive](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchive/xbtcarchive)\
[XBTC](/zh-TW/reference/graphics/xbtc/xbtc_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [GetResourceTiling](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourcetiling_public.md)
- [GetResourceAllocationInfo](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [List Archived Multiplayer Servers](/api-reference/multiplayerserver/list-archived-multiplayer-servers.md)
- [GetRequiredParameterResourceSize](/zh-TW/reference/graphics/d3d12/interfaces/id3d12metacommand/methods/id3d12metacommand_getrequiredparameterresourcesize_public.md)
