> ## 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::GetRequiredGpuScratchSizeInBytes

> 查詢使用 GPU 解壓縮 BVH 所需的 GPU 暫存記憶體數量

查詢使用 GPU 解壓縮 BVH 所需的 GPU 暫存記憶體數量。

## 語法

```cpp theme={null}
UINT64 GetRequiredGpuScratchSizeInBytes(  
    _In_ UINT NumGeometry
)  
```

### 參數

*NumGeometry*   \_In\_\
類型：UINT

BVH 建置描述中的幾何輸入 (三角形清單) 數目。

### 傳回值

類型：UINT64

傳回所需的暫存記憶體數量 (以位元組為單位的大小)。

## 備註

此方法應與 DecompressBVH\_BatchedGPU() 搭配使用，為每個要解壓縮的 BVH 保留暫存記憶體。

<a id="requirements" />

## 需求

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

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

## 另請參閱

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


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
