mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-04 17:53:17 +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:
parent
36ef61908d
commit
b2de662d67
22 changed files with 205 additions and 106 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue