Files
XCEngine/docs/api/XCEngine/Debug/RenderDocCapture/GetNumCaptures.md

35 lines
626 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RenderDocCapture::GetNumCaptures
查询当前可访问的 capture 数量。
```cpp
uint32_t GetNumCaptures() const;
```
## 行为说明
如果 RenderDoc 尚未加载,当前实现返回 `0`。否则直接转发到底层 `GetNumCaptures()`
## 参数
- 无。
## 返回值
- `uint32_t` - 当前 capture 数量RenderDoc 未加载时为 `0`
## 线程语义
- 无显式同步;通常在主线程诊断阶段调用。
## 示例
```cpp
uint32_t count = XCEngine::Debug::RenderDocCapture::Get().GetNumCaptures();
```
## 相关文档
- [返回类型总览](RenderDocCapture.md)
- [GetCapture](GetCapture.md)