diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/GfxDevice/GfxTimerQuery.h |
Diffstat (limited to 'Runtime/GfxDevice/GfxTimerQuery.h')
-rw-r--r-- | Runtime/GfxDevice/GfxTimerQuery.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/GfxTimerQuery.h b/Runtime/GfxDevice/GfxTimerQuery.h new file mode 100644 index 0000000..bba5174 --- /dev/null +++ b/Runtime/GfxDevice/GfxTimerQuery.h @@ -0,0 +1,23 @@ +#ifndef GFXTIMERQUERY_H +#define GFXTIMERQUERY_H + +#include "Runtime/Profiler/TimeHelper.h" +#include "Runtime/Utilities/LinkedList.h" + +class GfxTimerQuery : public ListElement +{ +public: + virtual ~GfxTimerQuery() {} + + enum + { + kWaitRenderThread = 1 << 0, + kWaitClientThread = 1 << 1, + kWaitAll = (kWaitClientThread | kWaitRenderThread) + }; + + virtual void Measure() = 0; + virtual ProfileTimeFormat GetElapsed(UInt32 flags) = 0; +}; + +#endif |