diff options
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 |