1 #include "vulkancontext.h"
2 #include <msp/strings/format.h>
10 vulkan_error::vulkan_error(unsigned code, const char *function):
11 runtime_error(format("%s failed: %s", function, get_error_message(code)))
15 VulkanContext::VulkanContext(Window &w, const VulkanOptions &opts):
16 display(w.get_display()),
23 string vulkan_error::get_error_message(unsigned)
28 void VulkanContext::platform_init(const VulkanOptions &)
30 throw runtime_error("no Vulkan support");
33 VulkanContext::~VulkanContext()
36 void (*VulkanContext::_get_function(const string &) const)()
42 } // namespace Graphics