SimpleGL  1.1.0
A framework for platform independent rendering
vulkan_instance.hpp
Go to the documentation of this file.
1 
8 #ifndef VULKAN_INSTANCE_HPP
9 #define VULKAN_INSTANCE_HPP
10 
11 #include <SimpleGL_vk/SimpleGL_vk_Export.h>
12 
13 #include <string>
14 #include <vector>
15 
16 #include <vulkan/vulkan.h>
17 
18 namespace sgl {
19 
25  class SIMPLEGL_VK_EXPORT Instance {
26 
27  private:
29  VkInstance handle;
30 
31  public:
37  Instance(bool debugMode = false);
38 
40  ~Instance(void);
41 
47  VkInstance getHandle();
48 
56  PFN_vkVoidFunction getProcAddr(std::string name);
57 
63  std::vector<VkPhysicalDevice> enumeratePhysicalDevices();
64  };
65 }
66 
67 #endif /* VULKAN_INSTANCE_HPP */
This class wraps a Vulkan instance.
Generic namespace for the SimpleGL framework.
Definition: application.hpp:18
const bool debugMode
Tells if the library is compiled in debug mode.