X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fvulkancontext.h;h=6d210e2338f293f68ed4c2b35120072b4d753a46;hb=11ab96ba152e389814543a6398e2cd6f17a31092;hp=d5cc4c3f1e1f176ed97fcc3aff72e46f04c5366b;hpb=73eebea348ced3b684d356238858c00b72cf5361;p=libs%2Fgui.git diff --git a/source/graphics/vulkancontext.h b/source/graphics/vulkancontext.h index d5cc4c3..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,7 +11,7 @@ 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 *); @@ -21,22 +22,20 @@ private: struct VulkanOptions { - bool enable_validation; - bool enable_debug_report; - bool enable_geometry_shader; - bool enable_tessellation_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());