diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-02 16:48:45 -0700 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-07 01:06:22 -0400 |
commit | 55c77dd25b7ab7a12acb764d27ada77c9d16cb00 (patch) | |
tree | 4df39a3902a2a25f95eb56ed4ade2eca7151fb3d /src/yuzu/configuration/configure_graphics.h | |
parent | 6ed6e6e18e99bdfb4518647abd36a4cf9fc1c083 (diff) |
yuzu-qt/config: Add option to disable compute on Intel
This option is only visible if an Intel GPU using the proprietary
driver is found during Vulkan device enumeration.
configure_graphics: More directly get driver id
Vulkan::Device does quite a bit more than we need just to see the
driver ID here.
Diffstat (limited to 'src/yuzu/configuration/configure_graphics.h')
-rw-r--r-- | src/yuzu/configuration/configure_graphics.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_graphics.h b/src/yuzu/configuration/configure_graphics.h index 901f604a5..364b1cac2 100644 --- a/src/yuzu/configuration/configure_graphics.h +++ b/src/yuzu/configuration/configure_graphics.h @@ -3,6 +3,7 @@ #pragma once +#include <functional> #include <memory> #include <vector> #include <QColor> @@ -37,7 +38,9 @@ class ConfigureGraphics : public QWidget { Q_OBJECT public: - explicit ConfigureGraphics(const Core::System& system_, QWidget* parent = nullptr); + explicit ConfigureGraphics(const Core::System& system_, + const std::function<void()>& expose_compute_option_, + QWidget* parent = nullptr); ~ConfigureGraphics() override; void ApplyConfiguration(); @@ -81,6 +84,7 @@ private: // selection in the combobox u32 vulkan_device{}; Settings::ShaderBackend shader_backend{}; + const std::function<void()>& expose_compute_option; const Core::System& system; }; |