mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Video Common: Improve texture dumping to work with fifoci and
fifo_comparer
This commit is contained in:
parent
53684701fa
commit
a129a53e56
5 changed files with 51 additions and 20 deletions
|
@ -142,6 +142,8 @@ public:
|
|||
virtual void ChangeSurface(void* new_surface_handle) {}
|
||||
bool UseVertexDepthRange() const;
|
||||
|
||||
void ExitFramedumping();
|
||||
|
||||
protected:
|
||||
std::tuple<int, int> CalculateTargetScale(int x, int y) const;
|
||||
bool CalculateTargetSize();
|
||||
|
@ -179,6 +181,7 @@ protected:
|
|||
u32 m_last_host_config_bits = 0;
|
||||
|
||||
private:
|
||||
void DoDumpFrame();
|
||||
void RunFrameDumps();
|
||||
void ShutdownFrameDumping();
|
||||
std::tuple<int, int> CalculateOutputDimensions(int width, int height);
|
||||
|
@ -208,8 +211,10 @@ private:
|
|||
AVIDump::Frame state;
|
||||
} m_frame_dump_config;
|
||||
|
||||
AbstractTexture* m_last_xfb_texture;
|
||||
u64 m_last_xfb_id = 0;
|
||||
AbstractTexture* m_last_xfb_texture = nullptr;
|
||||
u64 m_last_xfb_id = std::numeric_limits<u64>::max();
|
||||
u64 m_last_xfb_ticks = 0;
|
||||
float m_last_xfb_horizontal_scale = 0.0f;
|
||||
|
||||
std::unique_ptr<AbstractTexture> m_dump_texture;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue