renderer_vulkan/wrapper: Add exception class

This commit is contained in:
ReinUsesLisp 2020-03-27 02:50:27 -03:00
commit 3f0b7673f0

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: