renderer_vulkan/wrapper: Add exception class

This commit is contained in:
ReinUsesLisp 2020-03-27 02:50:27 -03:00
parent a12fd8f995
commit d1edc121e1
2 changed files with 34 additions and 0 deletions

View file

@ -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: