2022-11-05 12:58:44 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ConfigurationShared {
|
|
|
|
enum class CheckState;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureGraphicsAdvanced;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureGraphicsAdvanced : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureGraphicsAdvanced(const Core::System& system_, QWidget* parent = nullptr);
|
|
|
|
~ConfigureGraphicsAdvanced() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
|
|
|
void SetConfiguration();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
|
|
void SetupPerGameUI();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureGraphicsAdvanced> ui;
|
|
|
|
|
|
|
|
ConfigurationShared::CheckState use_vsync;
|
|
|
|
ConfigurationShared::CheckState use_asynchronous_shaders;
|
|
|
|
ConfigurationShared::CheckState use_fast_gpu_time;
|
|
|
|
ConfigurationShared::CheckState use_pessimistic_flushes;
|
2023-01-05 22:14:41 +00:00
|
|
|
ConfigurationShared::CheckState use_vulkan_driver_pipeline_cache;
|
2022-11-05 12:58:44 +00:00
|
|
|
|
|
|
|
const Core::System& system;
|
|
|
|
};
|