SimpleGL
1.1.0
A framework for platform independent rendering
Main Page
Namespaces
Classes
Files
File List
File Members
Backends
Vulkan
include
SimpleGL_vk
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 */
sgl::Queues
This struct stores relevant device queues.
Definition:
logical_device.hpp:22
sgl::Queues::presentation
VkQueue presentation
The handle of the presentation queue.
Definition:
logical_device.hpp:28
sgl
Generic namespace for the SimpleGL framework.
Definition:
application.hpp:18
sgl::Queues::graphics
VkQueue graphics
The handle of the graphics queue.
Definition:
logical_device.hpp:25
debugMode
const bool debugMode
Tells if the library is compiled in debug mode.
Definition:
vulkan_context.cpp:14
sgl::Device
This class wraps a Vulkan logical device.
Definition:
logical_device.hpp:36
Generated on Sat Jun 30 2018 21:55:23 for SimpleGL by
1.8.11