Add performance overlay for DXVA2 renderer

This commit is contained in:
Cameron Gutman committed 2019-01-19 23:05:56 -08:00
1 parent e944c819d9
commit b19c4bfc5d
10 files changed
+233 -68

No files matched your search

@@ -4,6 +4,7 @@
#include "pacer/pacer.h"
#include <d3d9.h>
#include <d3dx9.h>
#include <dxva2api.h>
extern "C" {
@@ -31,6 +32,7 @@ private:
bool initializeDecoder();
bool initializeRenderer();
bool initializeDevice(SDL_Window* window, bool enableVsync);
bool initializeOverlay();
bool isDecoderBlacklisted();
static
@@ -67,4 +69,5 @@ private:
DXVA2_ValueRange m_SaturationRange;
DXVA2_VideoDesc m_Desc;
REFERENCE_TIME m_FrameIndex;
LPD3DXFONT m_OverlayFont;
};