mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 08:43:16 +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
|
@ -128,7 +128,9 @@ vk::BufferView Buffer::View(u32 offset, u32 size, bool is_written, AmdGpu::DataF
|
|||
.offset = offset,
|
||||
.range = size,
|
||||
};
|
||||
const auto view = instance->GetDevice().createBufferView(view_ci);
|
||||
const auto [view_result, view] = instance->GetDevice().createBufferView(view_ci);
|
||||
ASSERT_MSG(view_result == vk::Result::eSuccess, "Failed to create buffer view: {}",
|
||||
vk::to_string(view_result));
|
||||
scheduler->DeferOperation(
|
||||
[view, device = instance->GetDevice()] { device.destroyBufferView(view); });
|
||||
return view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue