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

# GetTextureSize

> 取得紋理資料的總大小。

取得紋理資料的總大小。

## 語法

```cpp theme={null}
size_t GetTextureSize(  
)  
```

### 參數

無。

### 傳回值

類型: size\_t

紋理資料的大小 (以位元組為單位)。

## 備註

`XBTXTextureContainer_GetTextureSize` 會取得紋理資料的總大小。\
如需 `XBTCTextureContainer_GetTextureMemory` 的詳細資訊，請參閱 [XBTCTextureContainer\_GetTextureMemory](/zh-TW/reference/graphics/xbtc/interfaces/XBTCTextureContainer/methods/xbtctexturecontainer_gettexturememory)。
如需 `XBTCTextureContainer` 的詳細資訊，請參閱 [XBTCTextureContainer](/zh-TW/reference/graphics/xbtc/interfaces/XBTCTextureContainer/xbtctexturecontainer)。

## 需求

**標頭:** XBTC.h

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

## 另請參閱

[XBTXRefCountedResource](/zh-TW/reference/graphics/xbtc/interfaces/XBTCRefCountedResource/xbtcrefcountedresource)
[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)
- [GetResourceAllocationInfo](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [GetResourceAllocationInfo1 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
