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

> 測量 BCn 編碼程序的統計資料。

測量 BCn 編碼程序的統計資料。

## 語法

```cpp theme={null}
typedef struct XBTC_ENCODING_STATS {
    uint64_t NumSamples;
    uint32_t CRC32;
    float ErrorRange;
    float RMSE[4];
    float PSNR[4];
    float MaxError[4];
    float MaxNormError[4]; 
    float EncodingTimeMS;  
} XBTC_ENCODING_STATS  
```

### 成員

*NumSamples*\
類型: uint64\_t

為計算平均值而取樣的紋素總數。

*CRC32*\
類型: uint32\_t

已編碼紋理的雜湊，用於測試跨 GPU 廠商的確定性。

*ErrorRange*\
類型: float

每個通道的最大理論誤差，即訊號的範圍。例如，8 位元訊號的範圍為 '255'。

*RMSE*\
類型: float\[4]

均方誤差總和的平方根，依通道測量。誤差會依範圍正規化，因此應乘以 ErrorRange 才能取得標準值。

*PSNR*\
類型: float\[4]

峰值訊號雜訊比 (dB)，依通道測量。

*MaxError*\
類型: float\[4]

在所有取樣中觀察到的最大誤差，依通道測量。

*MaxNormError*\
類型: float\[4]

在所有取樣中觀察到的最大誤差，以誤差向量的範數 (長度) 測量。陣列的四個元素分別是 1D - 4D 誤差向量長度。例如，3 通道紋理的最大每像素誤差會位於 MaxNormError\[2]。

*EncodingTimeMS*\
類型: float

GPU 編碼時間 (以毫秒為單位)。

## 備註

*XBTC\_ENCODING\_STATS* 可作為 [XBTCBlockCompressTexture](/zh-TW/reference/graphics/xbtc/functions/xbtcblockcompresstexture) 中的選擇性引數。

## 需求

**標頭:** 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)
- [XBOX Texture Compressor (XBTC) tool reference](/build/core-features/graphics/newfeatures/xbtc/index.md)
- [XBOX Texture Compressor (XBTC) 도구 참고서](/ko/build/core-features/graphics/newfeatures/xbtc/index.md)
