summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/GfxTimerQuery.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/GfxDevice/GfxTimerQuery.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/GfxDevice/GfxTimerQuery.h')
-rw-r--r--Runtime/GfxDevice/GfxTimerQuery.h23
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