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>
|
2019-04-09 02:02:43 +08:00
|
|
|
|
#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;
|
|
|
|
|
|
2019-04-09 02:02:43 +08:00
|
|
|
|
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();
|
2019-04-09 02:02:43 +08:00
|
|
|
|
|
|
|
|
|
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
|