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