2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:43:35 -06:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-08 19:37:08 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2010-06-08 19:37:08 -06:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include <wx/panel.h>
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "VideoCommon/Debugger.h"
|
2010-06-08 19:37:08 -06:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
class wxButton;
|
|
|
|
class wxChoice;
|
|
|
|
class wxTextCtrl;
|
|
|
|
|
2010-12-05 07:15:36 -07:00
|
|
|
class GFXDebuggerPanel : public wxPanel, public GFXDebuggerBase
|
2010-06-08 19:37:08 -06:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 02:43:46 -06: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-08 19:37:08 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
virtual ~GFXDebuggerPanel();
|
2010-06-08 19:37:08 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
bool bInfoLog;
|
|
|
|
bool bPrimLog;
|
|
|
|
bool bSaveTextures;
|
|
|
|
bool bSaveTargets;
|
|
|
|
bool bSaveShaders;
|
2010-06-08 19:37:08 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
void OnPause() override;
|
2011-07-01 14:59:57 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
// Called from GFX thread once the GFXDebuggerPauseFlag spin lock has finished
|
|
|
|
void OnContinue() override;
|
2010-06-08 19:37:08 -06:00
|
|
|
|
|
|
|
private:
|
2016-06-24 02:43:46 -06: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-08 19:37:08 -06:00
|
|
|
};
|