diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-12-25 06:42:03 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-12-31 06:07:33 +0100 |
commit | 53ea06dc17ccf9232aa3326a4621500058f9d253 (patch) | |
tree | 944449c1810bd515d2b7882c2b2b15cf4a32f9e7 /src/video_core/renderer_vulkan/vk_device.cpp | |
parent | renderer_vulkan: Throw when enumerating devices fails (diff) | |
download | yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.gz yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.bz2 yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.lz yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.xz yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.zst yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_device.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index f3dd6eae1..831603e87 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp @@ -212,11 +212,7 @@ VKDevice::VKDevice(VkInstance instance_, u32 instance_version_, vk::PhysicalDevi instance_version{instance_version_}, format_properties{GetFormatProperties(physical, dld)} { SetupFamilies(surface); SetupFeatures(); -} - -VKDevice::~VKDevice() = default; -bool VKDevice::Create() { const auto queue_cis = GetDeviceQueueCreateInfos(); const std::vector extensions = LoadExtensions(); @@ -426,12 +422,7 @@ bool VKDevice::Create() { }; first_next = &diagnostics_nv; } - logical = vk::Device::Create(physical, queue_cis, extensions, first_next, dld); - if (!logical) { - LOG_ERROR(Render_Vulkan, "Failed to create logical device"); - return false; - } CollectTelemetryParameters(); CollectToolingInfo(); @@ -455,9 +446,10 @@ bool VKDevice::Create() { present_queue = logical.GetQueue(present_family); use_asynchronous_shaders = Settings::values.use_asynchronous_shaders.GetValue(); - return true; } +VKDevice::~VKDevice() = default; + VkFormat VKDevice::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags wanted_usage, FormatType format_type) const { if (IsFormatSupported(wanted_format, wanted_usage, format_type)) { |