From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/GfxTimerQuery.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Runtime/GfxDevice/GfxTimerQuery.h (limited to 'Runtime/GfxDevice/GfxTimerQuery.h') 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 -- cgit v1.1-26-g67d0