mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-28 04:12:30 -06:00
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <QWidget>
|
|
#include "yuzu/configuration/configuration_shared.h"
|
|
#include "yuzu/configuration/shared_translation.h"
|
|
|
|
namespace Core {
|
|
class System;
|
|
}
|
|
|
|
namespace Ui {
|
|
class ConfigureGraphicsAdvanced;
|
|
}
|
|
|
|
class ConfigureGraphicsAdvanced : public ConfigurationShared::Tab {
|
|
public:
|
|
explicit ConfigureGraphicsAdvanced(
|
|
const Core::System& system_,
|
|
std::shared_ptr<std::forward_list<ConfigurationShared::Tab*>> group,
|
|
const ConfigurationShared::TranslationMap& translations_,
|
|
const ConfigurationShared::ComboboxTranslationMap& combobox_translations_,
|
|
QWidget* parent = nullptr);
|
|
~ConfigureGraphicsAdvanced() override;
|
|
|
|
void ApplyConfiguration() override;
|
|
void SetConfiguration() override;
|
|
|
|
void ExposeComputeOption();
|
|
|
|
private:
|
|
void changeEvent(QEvent* event) override;
|
|
void RetranslateUI();
|
|
|
|
std::unique_ptr<Ui::ConfigureGraphicsAdvanced> ui;
|
|
|
|
const Core::System& system;
|
|
const ConfigurationShared::TranslationMap& translations;
|
|
const ConfigurationShared::ComboboxTranslationMap& combobox_translations;
|
|
std::forward_list<std::function<void(bool)>> apply_funcs;
|
|
|
|
QWidget* checkbox_enable_compute_pipelines{};
|
|
};
|