2017-06-27 10:00:41 -06:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-27 10:00:41 -06:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-06 16:40:15 -06:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
2017-06-27 10:00:41 -06:00
|
|
|
|
2020-10-20 19:02:43 -06:00
|
|
|
class GraphicsBool;
|
2017-06-27 10:00:41 -06:00
|
|
|
class GraphicsWindow;
|
2018-05-17 14:36:34 -06:00
|
|
|
class QLabel;
|
2020-10-20 19:02:43 -06:00
|
|
|
class ToolTipSlider;
|
2017-06-27 10:00:41 -06:00
|
|
|
|
|
|
|
class HacksWidget final : public GraphicsWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit HacksWidget(GraphicsWindow* parent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
2018-04-22 08:18:24 -06:00
|
|
|
void OnBackendChanged(const QString& backend_name);
|
|
|
|
|
2017-06-27 10:00:41 -06:00
|
|
|
// EFB
|
2020-10-20 19:02:43 -06:00
|
|
|
GraphicsBool* m_skip_efb_cpu;
|
|
|
|
GraphicsBool* m_ignore_format_changes;
|
|
|
|
GraphicsBool* m_store_efb_copies;
|
2021-07-29 18:43:35 -06:00
|
|
|
GraphicsBool* m_defer_efb_copies;
|
2017-06-27 10:00:41 -06:00
|
|
|
|
|
|
|
// Texture Cache
|
2018-05-17 14:36:34 -06:00
|
|
|
QLabel* m_accuracy_label;
|
2020-10-20 19:02:43 -06:00
|
|
|
ToolTipSlider* m_accuracy;
|
|
|
|
GraphicsBool* m_gpu_texture_decoding;
|
2017-06-27 10:00:41 -06:00
|
|
|
|
|
|
|
// External Framebuffer
|
2020-10-20 19:02:43 -06:00
|
|
|
GraphicsBool* m_store_xfb_copies;
|
|
|
|
GraphicsBool* m_immediate_xfb;
|
|
|
|
GraphicsBool* m_skip_duplicate_xfbs;
|
2017-06-27 10:00:41 -06:00
|
|
|
|
|
|
|
// Other
|
2020-10-20 19:02:43 -06:00
|
|
|
GraphicsBool* m_fast_depth_calculation;
|
|
|
|
GraphicsBool* m_disable_bounding_box;
|
|
|
|
GraphicsBool* m_vertex_rounding;
|
2023-01-13 23:56:37 -07:00
|
|
|
GraphicsBool* m_vi_skip;
|
2020-10-20 19:02:43 -06:00
|
|
|
GraphicsBool* m_save_texture_cache_state;
|
2017-06-27 10:00:41 -06:00
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
2018-11-02 08:17:00 -06:00
|
|
|
|
|
|
|
void UpdateDeferEFBCopiesEnabled();
|
2020-01-13 17:57:35 -07:00
|
|
|
void UpdateSkipPresentingDuplicateFramesEnabled();
|
2017-06-27 10:00:41 -06:00
|
|
|
};
|