35 lines
626 B
Markdown
35 lines
626 B
Markdown
# 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)
|