diff --git a/instance.cpp b/instance.cpp index 1978ad3..6a4ab72 100644 --- a/instance.cpp +++ b/instance.cpp @@ -12,17 +12,19 @@ * limitations under the License. * * Copyright: - * 2016, Danny Robson + * 2016-2017, Danny Robson */ #include "./instance.hpp" +#include "./traits.hpp" + using cruft::vk::instance; /////////////////////////////////////////////////////////////////////////////// static const VkInstanceCreateInfo DEFAULT_INFO = { - .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, + .sType = cruft::vk::structure_type_v, .pNext = nullptr, .flags = 0, @@ -49,6 +51,12 @@ instance::create_info::create_info (const VkInstanceCreateInfo &base): /////////////////////////////////////////////////////////////////////////////// +instance::instance (): + instance (create_info ()) +{ ; } + + +//----------------------------------------------------------------------------- instance::instance (const create_info &info): instantiated (&info, nullptr) { ; } diff --git a/instance.hpp b/instance.hpp index 4cd1f8b..998f2ea 100644 --- a/instance.hpp +++ b/instance.hpp @@ -12,7 +12,7 @@ * limitations under the License. * * Copyright: - * 2016, Danny Robson + * 2016-2017, Danny Robson */ #ifndef CRUFT_VK_INSTANCE_HPP @@ -33,6 +33,7 @@ namespace cruft::vk { create_info (const VkInstanceCreateInfo&); }; + instance (); instance (const create_info &info); std::set extensions (void) const;