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