OGL: Use PBO for framedump, with async readback.

This commit is contained in:
degasus
2016-10-08 02:11:24 +02:00
parent 136a10482f
commit f6a6cc9c67
2 changed files with 66 additions and 12 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <array>
#include <string>
#include "VideoCommon/RenderBase.h"
@ -111,5 +112,16 @@ private:
void BlitScreen(TargetRectangle src, TargetRectangle dst, GLuint src_texture, int src_width,
int src_height);
void FlushFrameDump();
void DumpFrame(const TargetRectangle& flipped_trc, u64 ticks);
// avi dumping state to delay one frame
std::array<u32, 2> m_frame_dumping_pbo = {};
std::array<bool, 2> m_frame_pbo_is_mapped = {};
bool m_last_frame_exported = false;
int m_last_frame_width = 0;
int m_last_frame_height = 0;
AVIDump::Frame m_last_frame_state;
};
}