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