jGL
Loading...
Searching...
No Matches
logicalDevice.h
Go to the documentation of this file.
1#ifndef LOGICALDEVICE
2#define LOGICALDEVICE
3
6
7namespace jGL::Vulkan
8{
10 {
11
12 public:
13
14 LogicalDevice() = default;
15
16 LogicalDevice(const PhysicalDevice & physicalDevice);
17
18 const VkDevice & getVkDevice() const { return logicalDevice; }
19 // might encapsulate queue elsewhere?
20 const VkQueue & getGraphicsQueue() const { return graphicsQueue; }
21 const VkQueue & getPresentQueue() const { return presentQueue; }
22
23 private:
24
25 VkDevice logicalDevice;
26
27 VkQueue graphicsQueue, presentQueue;
28
29 };
30}
31
32#endif /* LOGICALDEVICE */
Definition logicalDevice.h:10
const VkQueue & getPresentQueue() const
Definition logicalDevice.h:21
const VkDevice & getVkDevice() const
Definition logicalDevice.h:18
const VkQueue & getGraphicsQueue() const
Definition logicalDevice.h:20
Definition physicalDevice.h:42
Definition buffer.h:10