MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / VulkanException

Method VulkanException

vulkaninfo/vulkaninfo.h:110–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108// Vulkan function error: Get name of function, file, line, and the error code returned by the function
109struct 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

Callers

nothing calls this directly

Calls 2

VkResultStringFunction · 0.85
to_stringFunction · 0.70

Tested by

no test coverage detected