renderer_vulkan/wrapper: Add exception class
This commit is contained in:
parent
f5cee0e885
commit
3f0b7673f0
1 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…
Reference in a new issue