diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-09-23 04:21:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-23 04:21:23 +0200 |
| commit | b7855a3a56eea319d2d974a71b8bfdb1f0d1e4c7 (patch) | |
| tree | fc794f8b5692653a7791d65d8ba1a09e08db0ba9 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | 75c50223f231d64c66cfa16d6cf2d00540db2040 (diff) | |
| parent | 1fd60aeb5d57e582ba85be49f75dc28a6d634e9d (diff) | |
Merge pull request #11073 from Hibyehello/Fix-Metal-init
Add Metal as backend option with Vulkan Disabled
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index 2a3c15db0a..b385883093 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -226,11 +226,13 @@ const std::vector<std::unique_ptr<VideoBackendBase>>& VideoBackendBase::GetAvail backends.push_back(std::make_unique<DX11::VideoBackend>()); backends.push_back(std::make_unique<DX12::VideoBackend>()); #endif +#ifdef __APPLE__ + backends.push_back(std::make_unique<Metal::VideoBackend>()); +#endif #ifdef HAS_VULKAN #ifdef __APPLE__ // Emplace the Vulkan backend at the beginning so it takes precedence over OpenGL. backends.emplace(backends.begin(), std::make_unique<Vulkan::VideoBackend>()); - backends.push_back(std::make_unique<Metal::VideoBackend>()); #else backends.push_back(std::make_unique<Vulkan::VideoBackend>()); #endif |
