instance: rename create_info as create_info_t

This commit is contained in:
Danny Robson 2017-09-01 12:52:02 +10:00
parent 3d2229ea93
commit d1de7478b3
2 changed files with 9 additions and 9 deletions

View File

@ -39,25 +39,25 @@ static const VkInstanceCreateInfo DEFAULT_INFO = {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
instance::create_info::create_info (): instance::create_info_t::create_info_t ():
create_info (DEFAULT_INFO) create_info_t (DEFAULT_INFO)
{ ; } { ; }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
instance::create_info::create_info (const VkInstanceCreateInfo &base): instance::create_info_t::create_info_t (const VkInstanceCreateInfo &base):
VkInstanceCreateInfo (base) VkInstanceCreateInfo (base)
{ ; } { ; }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
instance::instance (): instance::instance ():
instance (create_info ()) instance (create_info_t ())
{ ; } { ; }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
instance::instance (const create_info &info): instance::instance (const create_info_t &info):
instantiated (&info, nullptr) instantiated (&info, nullptr)
{ ; } { ; }

View File

@ -28,13 +28,13 @@
namespace cruft::vk { namespace cruft::vk {
struct instance : public instantiated<instance> { struct instance : public instantiated<instance> {
struct create_info : public VkInstanceCreateInfo { struct create_info_t : public VkInstanceCreateInfo {
create_info (); create_info_t ();
create_info (const VkInstanceCreateInfo&); create_info_t (const VkInstanceCreateInfo&);
}; };
instance (); instance ();
instance (const create_info &info); instance (const create_info_t &info);
std::set<std::string> extensions (void) const; std::set<std::string> extensions (void) const;
}; };