2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:43:35 +00:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <wx/panel.h>
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoCommon/Debugger.h"
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
class wxButton;
|
|
|
|
class wxChoice;
|
|
|
|
class wxTextCtrl;
|
|
|
|
|
2010-12-05 14:15:36 +00:00
|
|
|
class GFXDebuggerPanel : public wxPanel, public GFXDebuggerBase
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
GFXDebuggerPanel(wxWindow* parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL, const wxString& title = _("GFX Debugger"));
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
virtual ~GFXDebuggerPanel();
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
bool bInfoLog;
|
|
|
|
bool bPrimLog;
|
|
|
|
bool bSaveTextures;
|
|
|
|
bool bSaveTargets;
|
|
|
|
bool bSaveShaders;
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void OnPause() override;
|
2011-07-01 20:59:57 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Called from GFX thread once the GFXDebuggerPauseFlag spin lock has finished
|
|
|
|
void OnContinue() override;
|
2010-06-09 01:37:08 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
wxButton* m_pButtonPause;
|
|
|
|
wxButton* m_pButtonPauseAtNext;
|
|
|
|
wxButton* m_pButtonPauseAtNextFrame;
|
|
|
|
wxButton* m_pButtonCont;
|
|
|
|
wxChoice* m_pPauseAtList;
|
|
|
|
wxButton* m_pButtonDump;
|
|
|
|
wxChoice* m_pDumpList;
|
|
|
|
wxButton* m_pButtonUpdateScreen;
|
|
|
|
wxButton* m_pButtonClearScreen;
|
|
|
|
wxButton* m_pButtonClearTextureCache;
|
|
|
|
wxButton* m_pButtonClearVertexShaderCache;
|
|
|
|
wxButton* m_pButtonClearPixelShaderCache;
|
|
|
|
wxTextCtrl* m_pCount;
|
|
|
|
|
|
|
|
void CreateGUIControls();
|
|
|
|
|
|
|
|
// These set GFXDebuggerPauseFlag to true (either immediately or once the specified event has
|
|
|
|
// occurred)
|
|
|
|
void OnPauseButton(wxCommandEvent& event);
|
|
|
|
void OnPauseAtNextButton(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnPauseAtNextFrameButton(wxCommandEvent& event);
|
|
|
|
void OnDumpButton(wxCommandEvent& event);
|
|
|
|
|
|
|
|
// sets GFXDebuggerPauseFlag to false
|
|
|
|
void OnContButton(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnUpdateScreenButton(wxCommandEvent& event);
|
|
|
|
void OnClearScreenButton(wxCommandEvent& event);
|
|
|
|
void OnClearTextureCacheButton(wxCommandEvent& event);
|
|
|
|
void OnClearVertexShaderCacheButton(wxCommandEvent& event);
|
|
|
|
void OnClearPixelShaderCacheButton(wxCommandEvent& event);
|
2010-06-09 01:37:08 +00:00
|
|
|
};
|