2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-02-23 19:01:17 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <QWidget>
|
2023-05-05 23:30:59 -04:00
|
|
|
#include "yuzu/configuration/configuration_shared.h"
|
2020-07-14 15:42:12 -04:00
|
|
|
|
2021-09-02 21:40:55 -04:00
|
|
|
namespace Core {
|
|
|
|
|
class System;
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-23 19:01:17 -05:00
|
|
|
namespace Ui {
|
|
|
|
|
class ConfigureGraphicsAdvanced;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-05 23:30:59 -04:00
|
|
|
class ConfigureGraphicsAdvanced : public ConfigurationShared::Tab {
|
2020-02-23 19:01:17 -05:00
|
|
|
public:
|
2023-05-05 23:30:59 -04:00
|
|
|
explicit ConfigureGraphicsAdvanced(
|
|
|
|
|
const Core::System& system_,
|
|
|
|
|
std::shared_ptr<std::forward_list<ConfigurationShared::Tab*>> group,
|
|
|
|
|
QWidget* parent = nullptr);
|
2020-02-23 19:01:17 -05:00
|
|
|
~ConfigureGraphicsAdvanced() override;
|
|
|
|
|
|
2023-05-05 23:30:59 -04:00
|
|
|
void ApplyConfiguration() override;
|
|
|
|
|
void SetConfiguration() override;
|
2020-02-23 19:01:17 -05:00
|
|
|
|
2023-05-02 16:48:45 -07:00
|
|
|
void ExposeComputeOption();
|
|
|
|
|
|
2020-02-23 19:01:17 -05:00
|
|
|
private:
|
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
2020-07-09 22:42:09 -04:00
|
|
|
void SetupPerGameUI();
|
|
|
|
|
|
2020-02-23 19:01:17 -05:00
|
|
|
std::unique_ptr<Ui::ConfigureGraphicsAdvanced> ui;
|
2020-07-14 13:55:47 -04:00
|
|
|
|
2023-05-01 23:12:28 +03:00
|
|
|
ConfigurationShared::CheckState async_present;
|
2023-01-04 20:53:08 -05:00
|
|
|
ConfigurationShared::CheckState renderer_force_max_clock;
|
2020-07-14 15:42:12 -04:00
|
|
|
ConfigurationShared::CheckState use_vsync;
|
2023-02-22 00:48:12 -05:00
|
|
|
ConfigurationShared::CheckState async_astc;
|
2023-05-04 02:34:49 +02:00
|
|
|
ConfigurationShared::CheckState use_reactive_flushing;
|
2020-07-14 15:42:12 -04:00
|
|
|
ConfigurationShared::CheckState use_asynchronous_shaders;
|
|
|
|
|
ConfigurationShared::CheckState use_fast_gpu_time;
|
2022-12-30 14:50:07 +01:00
|
|
|
ConfigurationShared::CheckState use_vulkan_driver_pipeline_cache;
|
2023-05-02 16:48:45 -07:00
|
|
|
ConfigurationShared::CheckState enable_compute_pipelines;
|
2023-06-08 01:15:51 -04:00
|
|
|
ConfigurationShared::CheckState use_video_framerate;
|
2023-06-14 14:11:46 -04:00
|
|
|
ConfigurationShared::CheckState barrier_feedback_loops;
|
2021-09-02 21:40:55 -04:00
|
|
|
|
2021-07-30 10:07:32 -04:00
|
|
|
const Core::System& system;
|
2020-02-23 19:01:17 -05:00
|
|
|
};
|