| 108 | // Vulkan function error: Get name of function, file, line, and the error code returned by the function |
| 109 | struct VulkanException : std::runtime_error { |
| 110 | VulkanException(const std::string &function, const char *file, int line, VkResult err) : runtime_error(function) { |
| 111 | msg = std::string(file) + ":" + std::to_string(line) + ":" + function + " failed with " + VkResultString(err); |
| 112 | } |
| 113 | ~VulkanException() throw() {} |
| 114 | const char *what() const throw() { return msg.c_str(); } |
| 115 |
nothing calls this directly
no test coverage detected