2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-02-24 00:01:17 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2023-07-22 03:09:09 +00:00
|
|
|
#include <vector>
|
2020-02-24 00:01:17 +00:00
|
|
|
#include <QWidget>
|
2023-05-06 03:30:59 +00:00
|
|
|
#include "yuzu/configuration/configuration_shared.h"
|
2020-07-14 19:42:12 +00:00
|
|
|
|
2021-09-03 01:40:55 +00:00
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
2020-02-24 00:01:17 +00:00
|
|
|
namespace Ui {
|
|
|
|
class ConfigureGraphicsAdvanced;
|
|
|
|
}
|
|
|
|
|
2023-06-21 05:42:42 +00:00
|
|
|
namespace ConfigurationShared {
|
|
|
|
class Builder;
|
|
|
|
}
|
|
|
|
|
2023-05-06 03:30:59 +00:00
|
|
|
class ConfigureGraphicsAdvanced : public ConfigurationShared::Tab {
|
2020-02-24 00:01:17 +00:00
|
|
|
public:
|
2023-05-06 03:30:59 +00:00
|
|
|
explicit ConfigureGraphicsAdvanced(
|
2023-07-22 03:09:09 +00:00
|
|
|
const Core::System& system_, std::shared_ptr<std::vector<ConfigurationShared::Tab*>> group,
|
2023-06-21 05:42:42 +00:00
|
|
|
const ConfigurationShared::Builder& builder, QWidget* parent = nullptr);
|
2020-02-24 00:01:17 +00:00
|
|
|
~ConfigureGraphicsAdvanced() override;
|
|
|
|
|
2023-05-06 03:30:59 +00:00
|
|
|
void ApplyConfiguration() override;
|
|
|
|
void SetConfiguration() override;
|
2020-02-24 00:01:17 +00:00
|
|
|
|
2023-05-02 23:48:45 +00:00
|
|
|
void ExposeComputeOption();
|
|
|
|
|
2020-02-24 00:01:17 +00:00
|
|
|
private:
|
2023-06-21 05:42:42 +00:00
|
|
|
void Setup(const ConfigurationShared::Builder& builder);
|
2020-02-24 00:01:17 +00:00
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureGraphicsAdvanced> ui;
|
2020-07-14 17:55:47 +00:00
|
|
|
|
2021-07-30 14:07:32 +00:00
|
|
|
const Core::System& system;
|
2023-06-21 05:42:42 +00:00
|
|
|
|
2023-07-22 03:09:09 +00:00
|
|
|
std::vector<std::function<void(bool)>> apply_funcs;
|
2023-05-07 13:48:26 +00:00
|
|
|
|
|
|
|
QWidget* checkbox_enable_compute_pipelines{};
|
2020-02-24 00:01:17 +00:00
|
|
|
};
|