mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
vulkan: Enable VULKAN_HPP_NO_EXCEPTIONS broadly. (#995)
* vulkan: Enable VULKAN_HPP_NO_EXCEPTIONS broadly. * vulkan: Use structured bindings for result where possible.
This commit is contained in:
@@ -98,7 +98,11 @@ void OnResize() {
|
||||
}
|
||||
|
||||
void Shutdown(const vk::Device& device) {
|
||||
device.waitIdle();
|
||||
auto result = device.waitIdle();
|
||||
if (result != vk::Result::eSuccess) {
|
||||
LOG_WARNING(ImGui, "Failed to wait for Vulkan device idle on shutdown: {}",
|
||||
vk::to_string(result));
|
||||
}
|
||||
|
||||
TextureManager::StopWorker();
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VULKAN_HPP_NO_EXCEPTIONS
|
||||
#include "common/types.h"
|
||||
#include "video_core/renderer_vulkan/vk_common.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user