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

# XBTC_COMPRESSION_STATS

> 測量壓縮程序的統計資料。

測量壓縮程序的統計資料。

## 語法

```cpp theme={null}
typedef struct XBTC_COMPRESSION_STATS {  
    size_t UncompressedSizeBytes;  
    size_t CompressedSizeBytes;  
    float CompressionTime;  
    float WallTime;  
} XBTC_COMPRESSION_STATS  
```

### 成員

*UncompressedSizeBytes*\
類型: size\_t

紋理在壓縮前的大小 (以位元組為單位)。這包括並排所產生的填補。

*CompressedSizeBytes*\
類型: size\_t

所有壓縮資料流的總大小 (以位元組為單位)。

*CompressionTime*\
類型: float

跨多個執行緒進行壓縮的累計時間 (以秒為單位)。每嘗試一種壓縮變體，時間就會增加。

*WallTime*\
類型: float

等候所有壓縮工作完成的實際時間 (以秒為單位)。具有許多子資料流的紋理 (例如 64KB SFS 頁面) 能在多核心系統上良好分散，以縮短整體實際時間。

## 備註

*XBTC\_COMPRESSION\_STATS* 可作為 [XBTCCompressBuffer](/zh-TW/reference/graphics/xbtc/functions/xbtccompressbuffer)、[XBTCCompressTexture](/zh-TW/reference/graphics/xbtc/functions/xbtccompresstexture) 和 [XBTCTileAndCompressTexture](/zh-TW/reference/graphics/xbtc/functions/xbtctileandcompresstexture) 中的選擇性引數。

## 需求

**標頭:** XBTC.h\
**支援的平台**: XBOX Series 主機

## 另請參閱

[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 公開版へのリンク](/ja-jp/nda/nda-topic-directory.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [Command-line tools for console development](/tools/tools-console/commandlinetools/commandlinetools.md)
