renderer_vulkan/wrapper: Add exception class

This commit is contained in:
ReinUsesLisp
2020-03-27 02:50:27 -03:00
parent f5cee0e885
commit 3f0b7673f0
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: