载入中...
搜索中...
未找到
eve::debug::RenderPassScope类 参考
RAII pass scope for C++ call sites. 更多...
#include <RenderTrace.h>
Public 成员函数 | |
| RenderPassScope (const char *name) | |
| ~RenderPassScope () | |
| RenderPassScope (const RenderPassScope &)=delete | |
| RenderPassScope & | operator= (const RenderPassScope &)=delete |
详细描述
RAII pass scope for C++ call sites.
The name is forwarded, not copied. passBegin may retain the pointer (the profiler keeps it in ZoneRecord::name until frameMark()), so a scope that handed out its own std::string buffer left the profiler reading freed memory for the built-in passes – non-deterministic, which is why it went unnoticed. Callers therefore pass static storage: every call site in the engine passes a string literal.
在文件 RenderTrace.h 第 90 行定义.
构造及析构函数说明
◆ RenderPassScope() [1/2]
|
inlineexplicit |
在文件 RenderTrace.h 第 92 行定义.
◆ ~RenderPassScope()
|
inline |
在文件 RenderTrace.h 第 93 行定义.
◆ RenderPassScope() [2/2]
|
delete |
成员函数说明
◆ operator=()
|
delete |
该类的文档由以下文件生成:
- src/engine/common/RenderTrace.h