Add performance overlay for DXVA2 renderer

This commit is contained in:
Cameron Gutman
2019-01-19 23:05:56 -08:00
parent e944c819d9
commit b19c4bfc5d
10 changed files with 233 additions and 68 deletions
+26
View File
@@ -0,0 +1,26 @@
#pragma once
#include <QString>
class OverlayManager
{
public:
enum OverlayType {
OverlayDebug,
OverlayMinorNotification,
OverlayMajorNotification,
OverlayMax
};
OverlayManager();
bool isOverlayEnabled(OverlayType type);
char* getOverlayText(OverlayType type);
void setOverlayState(OverlayType type, bool enabled);
struct {
bool enabled;
int updateSeq;
char text[512];
} m_Overlays[OverlayMax];
};