2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-02-23 19:01:17 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <QWidget>
|
2020-07-14 15:42:12 -04:00
|
|
|
|
2021-09-02 21:40:55 -04:00
|
|
|
namespace Core {
|
|
|
|
|
class System;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-14 15:42:12 -04:00
|
|
|
namespace ConfigurationShared {
|
|
|
|
|
enum class CheckState;
|
|
|
|
|
}
|
2020-02-23 19:01:17 -05:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class ConfigureGraphicsAdvanced;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ConfigureGraphicsAdvanced : public QWidget {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2021-07-30 10:07:32 -04:00
|
|
|
explicit ConfigureGraphicsAdvanced(const Core::System& system_, QWidget* parent = nullptr);
|
2020-02-23 19:01:17 -05:00
|
|
|
~ConfigureGraphicsAdvanced() override;
|
|
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
2021-09-02 21:40:55 -04:00
|
|
|
void SetConfiguration();
|
2020-02-23 19:01:17 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
2020-07-09 22:42:09 -04:00
|
|
|
void SetupPerGameUI();
|
|
|
|
|
|
2020-02-23 19:01:17 -05:00
|
|
|
std::unique_ptr<Ui::ConfigureGraphicsAdvanced> ui;
|
2020-07-14 13:55:47 -04:00
|
|
|
|
2020-07-14 15:42:12 -04:00
|
|
|
ConfigurationShared::CheckState use_vsync;
|
|
|
|
|
ConfigurationShared::CheckState use_asynchronous_shaders;
|
|
|
|
|
ConfigurationShared::CheckState use_fast_gpu_time;
|
2022-08-25 12:32:14 -04:00
|
|
|
ConfigurationShared::CheckState use_pessimistic_flushes;
|
2021-09-02 21:40:55 -04:00
|
|
|
|
2021-07-30 10:07:32 -04:00
|
|
|
const Core::System& system;
|
2020-02-23 19:01:17 -05:00
|
|
|
};
|