mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
OGL: Use PBO for framedump, with async readback.
This commit is contained in:
@ -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;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user