mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 00:07:47 +00:00
renderer_vulkan/wrapper: Add exception class
This commit is contained in:
parent
a12fd8f995
commit
d1edc121e1
2 changed files with 34 additions and 0 deletions
|
@ -14,6 +14,10 @@
|
|||
|
||||
namespace Vulkan::vk {
|
||||
|
||||
const char* Exception::what() const noexcept {
|
||||
return ToString(result);
|
||||
}
|
||||
|
||||
const char* ToString(VkResult result) noexcept {
|
||||
switch (result) {
|
||||
case VkResult::VK_SUCCESS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue