diff options
author | Mary <mary@mary.zone> | 2023-05-08 13:05:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 13:05:37 +0200 |
commit | a8950d6ac4c4d4e8b3884f799566603db2d9c406 (patch) | |
tree | aa297c8f71c17a7ce7016725566a8a1b683fb2db /src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs | |
parent | 162798b026a860a4fa51bd94dabb15f8f00e5a2b (diff) |
vulkan: Pass Vk instance to VulkanRenderer (#4859)1.1.772
This will allow possible multiple driver selection without any need of
LD preload. (useful when testing custom version of mesa for example)
Diffstat (limited to 'src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs')
-rw-r--r-- | src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs index 75a5168f..89392f6b 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs @@ -25,6 +25,7 @@ using System.Linq; using System.Runtime.InteropServices; using System.Net.NetworkInformation; using TimeZone = Ryujinx.Ava.UI.Models.TimeZone; +using Silk.NET.Vulkan; namespace Ryujinx.Ava.UI.ViewModels { @@ -310,7 +311,7 @@ namespace Ryujinx.Ava.UI.ViewModels { _gpuIds = new List<string>(); List<string> names = new(); - var devices = VulkanRenderer.GetPhysicalDevices(); + var devices = VulkanRenderer.GetPhysicalDevices(Vk.GetApi()); if (devices.Length == 0) { |