SimpleGL  1.1.0
A framework for platform independent rendering
logical_device.hpp
Go to the documentation of this file.
1 
8 #ifndef LOGICAL_DEVICE_HPP
9 #define LOGICAL_DEVICE_HPP
10 
11 #include <SimpleGL_vk/SimpleGL_vk_Export.h>
12 
13 #include <vulkan/vulkan.h>
14 
15 namespace sgl {
16 
22  struct Queues {
23 
25  VkQueue graphics;
26 
28  VkQueue presentation;
29  };
30 
36  class SIMPLEGL_VK_EXPORT Device {
37 
38  private:
40  VkDevice handle;
41 
43  Queues queues;
44 
45  public:
51  Device(bool debugMode = false);
52 
54  ~Device(void);
55 
61  VkDevice getHandle();
62 
68  Queues getQueues();
69  };
70 }
71 
72 #endif /* LOGICAL_DEVICE_HPP */
This struct stores relevant device queues.
VkQueue presentation
The handle of the presentation queue.
Generic namespace for the SimpleGL framework.
Definition: application.hpp:18
VkQueue graphics
The handle of the graphics queue.
const bool debugMode
Tells if the library is compiled in debug mode.
This class wraps a Vulkan logical device.