mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-25 04:57:46 +00:00
Merge pull request #9303 from liamwhite/new-vulkan-init
Vulkan: update initialization
This commit is contained in:
commit
39df80ff00
15 changed files with 194 additions and 104 deletions
|
|
@ -267,6 +267,10 @@ static Core::Frontend::WindowSystemType GetWindowSystemType() {
|
|||
return Core::Frontend::WindowSystemType::X11;
|
||||
else if (platform_name == QStringLiteral("wayland"))
|
||||
return Core::Frontend::WindowSystemType::Wayland;
|
||||
else if (platform_name == QStringLiteral("cocoa"))
|
||||
return Core::Frontend::WindowSystemType::Cocoa;
|
||||
else if (platform_name == QStringLiteral("android"))
|
||||
return Core::Frontend::WindowSystemType::Android;
|
||||
|
||||
LOG_CRITICAL(Frontend, "Unknown Qt platform!");
|
||||
return Core::Frontend::WindowSystemType::Windows;
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ void ConfigureGraphics::RetrieveVulkanDevices() try {
|
|||
|
||||
vk::InstanceDispatch dld;
|
||||
const Common::DynamicLibrary library = OpenLibrary();
|
||||
const vk::Instance instance = CreateInstance(library, dld, VK_API_VERSION_1_0);
|
||||
const vk::Instance instance = CreateInstance(library, dld, VK_API_VERSION_1_1);
|
||||
const std::vector<VkPhysicalDevice> physical_devices = instance.EnumeratePhysicalDevices();
|
||||
|
||||
vulkan_devices.clear();
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ void CheckVulkan() {
|
|||
Vulkan::vk::InstanceDispatch dld;
|
||||
const Common::DynamicLibrary library = Vulkan::OpenLibrary();
|
||||
const Vulkan::vk::Instance instance =
|
||||
Vulkan::CreateInstance(library, dld, VK_API_VERSION_1_0);
|
||||
Vulkan::CreateInstance(library, dld, VK_API_VERSION_1_1);
|
||||
|
||||
} catch (const Vulkan::vk::Exception& exception) {
|
||||
fmt::print(stderr, "Failed to initialize Vulkan: {}\n", exception.what());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue