pineapple-src/src/yuzu/configuration/configure_graphics_advanced.h

46 lines
964 B
C
Raw Normal View History

2020-12-28 15:15:37 +00:00
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <QWidget>
2021-10-09 00:29:53 +00:00
namespace Core {
class System;
}
2020-12-28 15:15:37 +00:00
namespace ConfigurationShared {
enum class CheckState;
}
namespace Ui {
class ConfigureGraphicsAdvanced;
}
class ConfigureGraphicsAdvanced : public QWidget {
Q_OBJECT
public:
2021-10-09 00:29:53 +00:00
explicit ConfigureGraphicsAdvanced(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 15:15:37 +00:00
~ConfigureGraphicsAdvanced() override;
void ApplyConfiguration();
2021-10-09 00:29:53 +00:00
void SetConfiguration();
2020-12-28 15:15:37 +00:00
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;
2021-10-09 00:29:53 +00:00
const Core::System& system;
2020-12-28 15:15:37 +00:00
};