ULRE/example/Vulkan/VKInstance.h

34 lines
721 B
C
Raw Normal View History

2019-04-09 00:22:26 +08:00
#ifndef HGL_GRAPH_VULKAN_INSTANCE_INCLUDE
#define HGL_GRAPH_VULKAN_INSTANCE_INCLUDE
#include<hgl/type/BaseString.h>
#include<hgl/type/List.h>
#include"VK.h"
#include"VKPhysicalDevice.h"
2019-04-09 00:22:26 +08:00
VK_NAMESPACE_BEGIN
class Instance
{
VkApplicationInfo app_info;
VkInstanceCreateInfo inst_info;
VkInstance inst;
ObjectList<PhysicalDevice> physical_devices;
2019-04-09 00:22:26 +08:00
private:
UTF8String app_name;
public:
Instance(const UTF8String &an);
virtual ~Instance();
virtual bool Init();
const ObjectList<PhysicalDevice> & GetDeviceList()const{return physical_devices;}
2019-04-09 00:22:26 +08:00
};//class Instance
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_INSTANCE_INCLUDE