mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-04 23:40:07 +00:00
46 lines
964 B
C++
46 lines
964 B
C++
// 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>
|
|
|
|
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;
|
|
|
|
const Core::System& system;
|
|
};
|