summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/GfxTimerQuery.h
blob: bba5174ac79f470938516f2e9e7e42446f298175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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