Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
VulkanLogicalDevice.hpp
Go to the documentation of this file.
1 #pragma once
3 #ifdef USING_VULKAN
4 #include <ThirdParty/Vulkan/Include/vulkan/vulkan.h>
5 
7 #include <ThirdParty/EASTL-master/include/EASTL/vector.h>
8 
9 namespace Engine {
10 
11  class VulkanLogicalDevice
12  {
13  public:
14  VulkanLogicalDevice(VulkanPhysicalDevice* vulkanPhysicalDevice, bool debug, eastl::vector<const char*> extensions, VulkanDeviceFeatures_t requestedDeviceFeatures);
15  ~VulkanLogicalDevice();
16 
17  VkDevice GetDevice() const;
18 
19  VulkanPhysicalDevice* GetPhysicalDevice() const;
20 
21  VkQueue GetGraphicsQueue() const;
22  VkQueue GetComputeQueue() const;
23  VkQueue GetPresentQueue() const;
24 
25  protected:
26  VkDevice device;
27 
28  VulkanPhysicalDevice* vulkanPhysicalDevice;
29 
30  VkQueue graphicsQueue;
31  VkQueue computeQueue;
32  VkQueue presentQueue;
33  };
34 
35 }
36 
37 #endif // USING_VULKAN