ULRE/example/Vulkan/VKInstance.h

34 lines
721 B
C++

#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"
VK_NAMESPACE_BEGIN
class Instance
{
VkApplicationInfo app_info;
VkInstanceCreateInfo inst_info;
VkInstance inst;
ObjectList<PhysicalDevice> physical_devices;
private:
UTF8String app_name;
public:
Instance(const UTF8String &an);
virtual ~Instance();
virtual bool Init();
const ObjectList<PhysicalDevice> & GetDeviceList()const{return physical_devices;}
};//class Instance
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_INSTANCE_INCLUDE