X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgraphics%2Fvulkancontext.h;h=6d210e2338f293f68ed4c2b35120072b4d753a46;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=f80f5cb5ddc4363daed3ddc354bd0eb7a50a0abc;hpb=235af0c1148e6dbce927e56846e851564bd083e8;p=libs%2Fgui.git diff --git a/source/graphics/vulkancontext.h b/source/graphics/vulkancontext.h index f80f5cb..6d210e2 100644 --- a/source/graphics/vulkancontext.h +++ b/source/graphics/vulkancontext.h @@ -3,6 +3,7 @@ #include #include +#include "mspgui_api.h" namespace Msp { namespace Graphics { @@ -10,11 +11,10 @@ namespace Graphics { class Display; class Window; -class vulkan_error: public std::runtime_error +class MSPGUI_API vulkan_error: public std::runtime_error { public: vulkan_error(unsigned, const char *); - virtual ~vulkan_error() throw() { } private: static std::string get_error_message(unsigned); @@ -22,21 +22,20 @@ private: struct VulkanOptions { - bool enable_validation; - bool enable_debug_report; - bool enable_geometry_shader; - - VulkanOptions(); + bool enable_validation = false; + bool enable_debug_report = false; + bool enable_geometry_shader = false; + bool enable_tessellation_shader = false; }; -class VulkanContext +class MSPGUI_API VulkanContext { private: struct Private; Display &display; Window &window; - Private *priv; + Private *priv = nullptr; public: VulkanContext(Window &, const VulkanOptions & = VulkanOptions());