2016-08-24 22:15:38 -04:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-09-17 20:38:01 -04:00
|
|
|
#include <memory>
|
2020-01-21 14:40:53 -05:00
|
|
|
#include <vector>
|
|
|
|
#include <QString>
|
2016-09-20 11:21:23 -04:00
|
|
|
#include <QWidget>
|
2020-01-21 14:40:53 -05:00
|
|
|
#include "core/settings.h"
|
2016-08-24 22:15:38 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureGraphics;
|
|
|
|
}
|
|
|
|
|
2016-09-17 20:38:01 -04:00
|
|
|
class ConfigureGraphics : public QWidget {
|
2016-08-24 22:15:38 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-09-17 20:38:01 -04:00
|
|
|
explicit ConfigureGraphics(QWidget* parent = nullptr);
|
2018-12-02 14:10:28 -05:00
|
|
|
~ConfigureGraphics() override;
|
2016-08-24 22:15:38 -04:00
|
|
|
|
2019-05-26 00:39:23 -04:00
|
|
|
void ApplyConfiguration();
|
2016-08-24 22:15:38 -04:00
|
|
|
|
|
|
|
private:
|
2019-06-05 18:39:46 -04:00
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
2019-05-26 00:39:23 -04:00
|
|
|
void SetConfiguration();
|
2016-08-24 22:15:38 -04:00
|
|
|
|
2019-01-20 22:09:23 -05:00
|
|
|
void UpdateBackgroundColorButton(QColor color);
|
2020-01-21 14:40:53 -05:00
|
|
|
void UpdateDeviceComboBox();
|
|
|
|
void UpdateDeviceSelection(int device);
|
|
|
|
|
|
|
|
void RetrieveVulkanDevices();
|
|
|
|
|
|
|
|
Settings::RendererBackend GetCurrentGraphicsBackend() const;
|
2019-01-20 22:09:23 -05:00
|
|
|
|
2016-08-24 22:15:38 -04:00
|
|
|
std::unique_ptr<Ui::ConfigureGraphics> ui;
|
2018-09-08 19:57:19 -04:00
|
|
|
QColor bg_color;
|
2020-01-21 14:40:53 -05:00
|
|
|
|
|
|
|
std::vector<QString> vulkan_devices;
|
|
|
|
u32 vulkan_device{};
|
2016-08-24 22:15:38 -04:00
|
|
|
};
|