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

# XGBVHComputer::ValidateDecompressedBVH

> 根據原始 BVH 驗證解壓縮的 BVH (供偵錯使用)

比較兩個 BLAS 是否相等。

## 語法

```cpp theme={null}
HRESULT ValidateDecompressedBVH(  
    _In_ const void*  OriginalBVHStructure,
    _In_ const void*  DecompressedBVHStructure
)  
```

### 參數

*OriginalBVHStructure*   \_In\_\
類型：const void\*

指向 CPU 可見記憶體中原始 BVH 的指標。

*DecompressedBVHStructure*   \_In\_\
類型：const void\*

指向 CPU 可見記憶體中新解壓縮之 BVH 的指標。

### 傳回值

類型：HRESULT

當兩個 BVH 相符時傳回 S\_OK；否則傳回錯誤碼。如需錯誤碼清單，請參閱 [Direct3D 12 傳回碼](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12-graphics-reference-returnvalues)。

## 備註

兩個 BVH 不需要完全相同。可容許因轉換頂點而產生的一些浮點誤差。

<a id="requirements" />

## 需求

**標頭：** xg\_xs.h

**程式庫：** xg\_xs.lib\
**支援的平台**：XBOX Series 主機

## 另請參閱

[XGBVHComputer](/zh-TW/reference/graphics/xg_xs/interfaces/XGBVHComputer/xgbvhcomputer_xs)\
[DecompressBVH](/zh-TW/reference/graphics/xg_xs/interfaces/XGBVHComputer/methods/xgbvhcomputer_decompressbvh_xs)


## Related topics

- [Validate Api Policy](/api-reference/authentication/validate-api-policy.md)
- [Validate Entity Token](/api-reference/authentication/validate-entity-token.md)
- [Validate IOS Receipt](/api-reference/platform-specific-methods/validate-ios-receipt.md)
- [ValidateSchemaForManifest](/zh-TW/reference/tools/packagingservices/functions/validateschemaformanifest.md)
- [Validate Windows Store Receipt](/api-reference/platform-specific-methods/validate-windows-store-receipt.md)
