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

46 lines
1006 B
C
Raw Normal View History

2022-04-23 14:49:07 -04:00
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 10:15:37 -05:00
#pragma once
#include <memory>
#include <QWidget>
2021-10-08 20:29:53 -04:00
namespace Core {
class System;
}
2020-12-28 10:15:37 -05:00
namespace ConfigurationShared {
enum class CheckState;
}
namespace Ui {
class ConfigureGraphicsAdvanced;
}
class ConfigureGraphicsAdvanced : public QWidget {
Q_OBJECT
public:
2021-10-08 20:29:53 -04:00
explicit ConfigureGraphicsAdvanced(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 10:15:37 -05:00
~ConfigureGraphicsAdvanced() override;
void ApplyConfiguration();
2021-10-08 20:29:53 -04:00
void SetConfiguration();
2020-12-28 10:15:37 -05: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;
2022-08-26 22:27:11 -04:00
ConfigurationShared::CheckState use_pessimistic_flushes;
2021-10-08 20:29:53 -04:00
const Core::System& system;
2020-12-28 10:15:37 -05:00
};