2017-06-27 18:00:41 +02:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-07 00:40:15 +02:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
2017-06-27 18:00:41 +02:00
|
|
|
|
2020-10-20 20:02:43 -05:00
|
|
|
class GraphicsBool;
|
2017-06-27 18:00:41 +02:00
|
|
|
class GraphicsWindow;
|
2018-05-17 22:36:34 +02:00
|
|
|
class QLabel;
|
2020-10-20 20:02:43 -05:00
|
|
|
class ToolTipSlider;
|
2017-06-27 18:00:41 +02:00
|
|
|
|
|
|
|
class HacksWidget final : public GraphicsWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit HacksWidget(GraphicsWindow* parent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
2018-04-22 16:18:24 +02:00
|
|
|
void OnBackendChanged(const QString& backend_name);
|
|
|
|
|
2017-06-27 18:00:41 +02:00
|
|
|
// EFB
|
2020-10-20 20:02:43 -05:00
|
|
|
GraphicsBool* m_skip_efb_cpu;
|
|
|
|
GraphicsBool* m_ignore_format_changes;
|
|
|
|
GraphicsBool* m_store_efb_copies;
|
2017-06-27 18:00:41 +02:00
|
|
|
|
|
|
|
// Texture Cache
|
2018-05-17 22:36:34 +02:00
|
|
|
QLabel* m_accuracy_label;
|
2020-10-20 20:02:43 -05:00
|
|
|
ToolTipSlider* m_accuracy;
|
|
|
|
GraphicsBool* m_gpu_texture_decoding;
|
2017-06-27 18:00:41 +02:00
|
|
|
|
|
|
|
// External Framebuffer
|
2020-10-20 20:02:43 -05:00
|
|
|
GraphicsBool* m_store_xfb_copies;
|
|
|
|
GraphicsBool* m_immediate_xfb;
|
|
|
|
GraphicsBool* m_skip_duplicate_xfbs;
|
2017-06-27 18:00:41 +02:00
|
|
|
|
|
|
|
// Other
|
2020-10-20 20:02:43 -05:00
|
|
|
GraphicsBool* m_fast_depth_calculation;
|
|
|
|
GraphicsBool* m_disable_bounding_box;
|
|
|
|
GraphicsBool* m_vertex_rounding;
|
|
|
|
GraphicsBool* m_save_texture_cache_state;
|
|
|
|
GraphicsBool* m_defer_efb_copies;
|
2017-06-27 18:00:41 +02:00
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
2018-11-03 00:17:00 +10:00
|
|
|
|
|
|
|
void UpdateDeferEFBCopiesEnabled();
|
2020-01-14 10:57:35 +10:00
|
|
|
void UpdateSkipPresentingDuplicateFramesEnabled();
|
2017-06-27 18:00:41 +02:00
|
|
|
};
|