mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-03-13 09:51:06 +00:00
renderer_vulkan/wrapper: Add exception class
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user