2017-06-15 23:43:01 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-15 23:43:01 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-06 22:40:15 +00:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
2017-06-15 23:43:01 +00:00
|
|
|
|
2020-10-21 01:01:33 +00:00
|
|
|
class GraphicsBool;
|
|
|
|
class GraphicsChoice;
|
|
|
|
class GraphicsInteger;
|
2017-06-15 23:43:01 +00:00
|
|
|
class GraphicsWindow;
|
|
|
|
class QCheckBox;
|
2020-04-26 21:40:47 +00:00
|
|
|
class QComboBox;
|
2019-07-17 18:15:25 +00:00
|
|
|
class QSpinBox;
|
2020-10-21 01:01:33 +00:00
|
|
|
class ToolTipCheckBox;
|
2017-06-15 23:43:01 +00:00
|
|
|
|
|
|
|
class AdvancedWidget final : public GraphicsWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit AdvancedWidget(GraphicsWindow* parent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
|
|
|
void OnBackendChanged();
|
|
|
|
void OnEmulationStateChanged(bool running);
|
|
|
|
|
|
|
|
// Debugging
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_enable_wireframe;
|
|
|
|
GraphicsBool* m_show_statistics;
|
|
|
|
GraphicsBool* m_enable_format_overlay;
|
|
|
|
GraphicsBool* m_enable_api_validation;
|
2022-10-26 19:17:15 +00:00
|
|
|
GraphicsBool* m_show_fps;
|
2022-12-24 00:52:53 +00:00
|
|
|
GraphicsBool* m_show_ftimes;
|
2022-10-26 19:17:15 +00:00
|
|
|
GraphicsBool* m_show_vps;
|
2022-12-24 00:52:53 +00:00
|
|
|
GraphicsBool* m_show_vtimes;
|
|
|
|
GraphicsBool* m_show_graphs;
|
2022-10-26 19:17:15 +00:00
|
|
|
GraphicsBool* m_show_speed;
|
|
|
|
GraphicsBool* m_show_speed_colors;
|
|
|
|
GraphicsInteger* m_perf_samp_window;
|
|
|
|
GraphicsBool* m_log_render_time;
|
2017-06-15 23:43:01 +00:00
|
|
|
|
|
|
|
// Utility
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_prefetch_custom_textures;
|
|
|
|
GraphicsBool* m_dump_efb_target;
|
2021-05-27 00:32:02 +00:00
|
|
|
GraphicsBool* m_dump_xfb_target;
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_disable_vram_copies;
|
|
|
|
GraphicsBool* m_load_custom_textures;
|
2022-03-31 05:44:32 +00:00
|
|
|
ToolTipCheckBox* m_enable_graphics_mods;
|
2017-06-15 23:43:01 +00:00
|
|
|
|
2020-05-05 04:07:06 +00:00
|
|
|
// Texture dumping
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_dump_textures;
|
|
|
|
GraphicsBool* m_dump_mip_textures;
|
|
|
|
GraphicsBool* m_dump_base_textures;
|
2020-05-05 04:07:06 +00:00
|
|
|
|
2019-07-17 18:02:08 +00:00
|
|
|
// Frame dumping
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_dump_use_ffv1;
|
|
|
|
GraphicsBool* m_use_fullres_framedumps;
|
|
|
|
GraphicsInteger* m_dump_bitrate;
|
2021-10-02 00:56:46 +00:00
|
|
|
GraphicsInteger* m_png_compression_level;
|
2019-07-17 18:02:08 +00:00
|
|
|
|
2017-06-15 23:43:01 +00:00
|
|
|
// Misc
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_enable_cropping;
|
|
|
|
ToolTipCheckBox* m_enable_prog_scan;
|
|
|
|
GraphicsBool* m_backend_multithreading;
|
2022-07-24 08:51:22 +00:00
|
|
|
GraphicsBool* m_prefer_vs_for_point_line_expansion;
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_borderless_fullscreen;
|
2019-03-09 02:36:32 +00:00
|
|
|
|
|
|
|
// Experimental
|
2020-10-21 01:01:33 +00:00
|
|
|
GraphicsBool* m_defer_efb_access_invalidation;
|
2021-10-15 18:57:53 +00:00
|
|
|
GraphicsBool* m_manual_texture_sampling;
|
2017-06-15 23:43:01 +00:00
|
|
|
};
|